Mercurial > hg-stable
changeset 44686:90e05b304902
rust-chg: silence warning about dated coding style
Differential Revision: https://phab.mercurial-scm.org/D8384
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 31 Mar 2020 23:25:26 +0900 |
parents | 80d6e3415636 |
children | bca57ad9e630 |
files | rust/chg/src/message.rs rust/chg/src/runcommand.rs |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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"]