Patchwork D8020: rust: remove an unnecessary set of parentheses

login
register
mail settings
Submitter phabricator
Date Jan. 27, 2020, 8:39 p.m.
Message ID <differential-rev-PHID-DREV-tly76fbsuuvec7fucnsg-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44702/
State Superseded
Headers show

Comments

phabricator - Jan. 27, 2020, 8:39 p.m.
martinvonz created this revision.
Herald added subscribers: mercurial-devel, kevincox.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  My build complained about this. I guess it started after I upgraded
  rustc.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8020

AFFECTED FILES
  rust/hg-core/src/dirstate/status.rs

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: kevincox, mercurial-devel

Patch

diff --git a/rust/hg-core/src/dirstate/status.rs b/rust/hg-core/src/dirstate/status.rs
--- a/rust/hg-core/src/dirstate/status.rs
+++ b/rust/hg-core/src/dirstate/status.rs
@@ -272,7 +272,7 @@ 
 
 pub fn status<'a: 'c, 'b: 'c, 'c>(
     dmap: &'a DirstateMap,
-    matcher: &'b (impl Matcher),
+    matcher: &'b impl Matcher,
     root_dir: impl AsRef<Path> + Sync + Send + Copy,
     list_clean: bool,
     last_normal_time: i64,