From patchwork Mon Apr 6 14:19:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D8384: rust-chg: silence warning about dated coding style From: phabricator X-Patchwork-Id: 46032 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 6 Apr 2020 14:19:52 +0000 yuja created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D8384 AFFECTED FILES rust/chg/src/message.rs rust/chg/src/runcommand.rs CHANGE DETAILS To: yuja, #hg-reviewers Cc: mercurial-devel diff --git a/rust/chg/src/runcommand.rs b/rust/chg/src/runcommand.rs --- a/rust/chg/src/runcommand.rs +++ b/rust/chg/src/runcommand.rs @@ -37,7 +37,7 @@ Finished, } -type CommandPoll = io::Result<(AsyncS<(Client, H, i32), CommandState>)>; +type CommandPoll = io::Result, H, i32), CommandState>>; /// Future resolves to `(exit_code, client)`. #[must_use = "futures do nothing unless polled"] diff --git a/rust/chg/src/message.rs b/rust/chg/src/message.rs --- a/rust/chg/src/message.rs +++ b/rust/chg/src/message.rs @@ -152,7 +152,7 @@ fn new_parse_error(error: E) -> io::Error where - E: Into>, + E: Into>, { io::Error::new(io::ErrorKind::InvalidData, error) }