rust-chg: silence warning about dated coding style
Differential Revision: https://phab.mercurial-scm.org/D8384
--- 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"]