Patchwork D8384: rust-chg: silence warning about dated coding style

login
register
mail settings
Submitter phabricator
Date April 9, 2020, 7:26 p.m.
Message ID <5946f95e26b4cb2ed1bf51b6773eed1e@localhost.localdomain>
Download mbox | patch
Permalink /patch/46052/
State Not Applicable
Headers show

Comments

phabricator - April 9, 2020, 7:26 p.m.
Closed by commit rHG90e05b304902: rust-chg: silence warning about dated coding style (authored by yuja).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8384?vs=21000&id=21022

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8384/new/

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, Alphare
Cc: mercurial-devel

Patch

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<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"]
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<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)
 }