]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/serde.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / serde.rs
index caa954bea44fbf1a4f92ecf8f347f22a1653581c..c52fd065dbef5093290c9014dae22b7bb8c1567c 100644 (file)
@@ -7,9 +7,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![feature(tool_lints)]
-
 #![warn(clippy::serde_api_misuse)]
 #![allow(dead_code)]
 
@@ -25,13 +22,15 @@ fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
     }
 
     fn visit_str<E>(self, _v: &str) -> Result<Self::Value, E>
-        where E: serde::de::Error,
+    where
+        E: serde::de::Error,
     {
         unimplemented!()
     }
 
     fn visit_string<E>(self, _v: String) -> Result<Self::Value, E>
-        where E: serde::de::Error,
+    where
+        E: serde::de::Error,
     {
         unimplemented!()
     }
@@ -47,11 +46,11 @@ fn expecting(&self, _: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
     }
 
     fn visit_string<E>(self, _v: String) -> Result<Self::Value, E>
-        where E: serde::de::Error,
+    where
+        E: serde::de::Error,
     {
         unimplemented!()
     }
 }
 
-fn main() {
-}
+fn main() {}