Răsfoiți Sursa

Allow deprecated items.

Tokio has moved lots of stuff from tokio-core::io to tokio-io.
Paul Lietar 8 ani în urmă
părinte
comite
ded43122a2
2 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 3 0
      src/lib.rs
  2. 3 0
      src/main.rs

+ 3 - 0
src/lib.rs

@@ -2,6 +2,9 @@
 
 #![cfg_attr(feature = "cargo-clippy", allow(unused_io_amount))]
 
+// TODO: many items from tokio-core::io have been deprecated in favour of tokio-io
+#![allow(deprecated)]
+
 #[macro_use] extern crate error_chain;
 #[macro_use] extern crate futures;
 #[macro_use] extern crate lazy_static;

+ 3 - 0
src/main.rs

@@ -1,3 +1,6 @@
+// TODO: many items from tokio-core::io have been deprecated in favour of tokio-io
+#![allow(deprecated)]
+
 #[macro_use] extern crate log;
 extern crate env_logger;
 extern crate futures;