Enable all lints from the rust-2018-idioms suite.
Additionally, fix the violation of the bare-trait-objects lint.
--- 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
+}