]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/fallible_impl_from.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / fallible_impl_from.rs
index 5e33cca59fa73331ad97d594e682562f99ae9a34..679f4a7dc357d4a182be13c9a292d43ac229ea5c 100644 (file)
@@ -1,5 +1,3 @@
-#![feature(tool_lints)]
-
 #![deny(clippy::fallible_impl_from)]
 
 // docs example
@@ -10,7 +8,6 @@ fn from(s: String) -> Self {
     }
 }
 
-
 struct Valid(Vec<u8>);
 
 impl<'a> From<&'a str> for Valid {
@@ -24,7 +21,6 @@ fn from(i: usize) -> Valid {
     }
 }
 
-
 struct Invalid;
 
 impl From<usize> for Invalid {