Enable all lints from the rust-2018-idioms suite.
authormarmistrz
Sun, 24 Jun 2018 12:09:31 -0400
changeset 13421 d1368c776a4f
parent 13420 cf189adc07fd
child 13422 5fb27f94fc3b
Enable all lints from the rust-2018-idioms suite. Additionally, fix the violation of the bare-trait-objects lint.
gameServer2/src/main.rs
gameServer2/src/protocol/test.rs
--- a/gameServer2/src/main.rs	Thu Jun 21 17:43:13 2018 -0400
+++ b/gameServer2/src/main.rs	Sun Jun 24 12:09:31 2018 -0400
@@ -1,4 +1,6 @@
 #![allow(unused_imports)]
+#![deny(bare_trait_objects)]
+#![warn(unreachable_pub)]
 
 extern crate rand;
 extern crate mio;
--- a/gameServer2/src/protocol/test.rs	Thu Jun 21 17:43:13 2018 -0400
+++ b/gameServer2/src/protocol/test.rs	Sun Jun 24 12:09:31 2018 -0400
@@ -65,7 +65,7 @@
     }
 
     type Strategy = BoxedStrategy<Ascii>;
-    type ValueTree = Box<ValueTree<Value = Ascii>>;
+    type ValueTree = Box<dyn ValueTree<Value = Ascii>>;
 }
 
 pub fn gen_proto_msg() -> BoxedStrategy<HWProtocolMessage> where {
@@ -131,4 +131,4 @@
         57 => Empty()
     )});
     res.boxed()
-}
\ No newline at end of file
+}