rust-chg: silence warning about dated coding style
authorYuya Nishihara <yuya@tcha.org>
Tue, 31 Mar 2020 23:25:26 +0900
changeset 44685 90e05b304902
parent 44684 80d6e3415636
child 44686 bca57ad9e630
rust-chg: silence warning about dated coding style Differential Revision: https://phab.mercurial-scm.org/D8384
rust/chg/src/message.rs
rust/chg/src/runcommand.rs
--- a/rust/chg/src/message.rs	Mon Nov 19 20:50:45 2018 +0900
+++ b/rust/chg/src/message.rs	Tue Mar 31 23:25:26 2020 +0900
@@ -152,7 +152,7 @@
 
 fn new_parse_error<E>(error: E) -> io::Error
 where
-    E: Into<Box<error::Error + Send + Sync>>,
+    E: Into<Box<dyn error::Error + Send + Sync>>,
 {
     io::Error::new(io::ErrorKind::InvalidData, error)
 }
--- a/rust/chg/src/runcommand.rs	Mon Nov 19 20:50:45 2018 +0900
+++ b/rust/chg/src/runcommand.rs	Tue Mar 31 23:25:26 2020 +0900
@@ -37,7 +37,7 @@
     Finished,
 }
 
-type CommandPoll<C, H> = io::Result<(AsyncS<(Client<C>, H, i32), CommandState<C, H>>)>;
+type CommandPoll<C, H> = io::Result<AsyncS<(Client<C>, H, i32), CommandState<C, H>>>;
 
 /// Future resolves to `(exit_code, client)`.
 #[must_use = "futures do nothing unless polled"]