]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/option_map_unit_fn.rs
non_copy_const: remove incorrect suggestion
[rust.git] / tests / ui / option_map_unit_fn.rs
index b023181fcf7adfae2069318748f4f61d63500078..1d2a3a17ee00b88e05710413b7a9e6f9d91037d0 100644 (file)
@@ -1,15 +1,3 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-
-
-
 #![warn(clippy::option_map_unit_fn)]
 #![allow(unused)]
 
@@ -34,7 +22,7 @@ fn do_option_plus_one(self: &Self, value: usize) -> usize {
         value + 1
     }
 }
-
+#[rustfmt::skip]
 fn option_map_unit_fn() {
     let x = HasOption { field: Some(10) };
 
@@ -108,5 +96,4 @@ fn option_map_unit_fn() {
     y.map(do_nothing);
 }
 
-fn main() {
-}
+fn main() {}