Patchwork D9446: rust-format: appease the rust-format deity on requirements.rs

login
register
mail settings
Submitter phabricator
Date Nov. 28, 2020, 4:43 p.m.
Message ID <differential-rev-PHID-DREV-mejizw2s3sjzabzxrcn5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47724/
State Superseded
Headers show

Comments

phabricator - Nov. 28, 2020, 4:43 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This makes tests/test-check-rust-format.t happy.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  rust/hg-core/src/requirements.rs

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/requirements.rs b/rust/hg-core/src/requirements.rs
--- a/rust/hg-core/src/requirements.rs
+++ b/rust/hg-core/src/requirements.rs
@@ -55,7 +55,7 @@ 
 pub fn check(repo_root: &Path) -> Result<(), RequirementsError> {
     for feature in load(repo_root)? {
         if !SUPPORTED.contains(&&*feature) {
-            return Err(RequirementsError::Unsupported { feature })
+            return Err(RequirementsError::Unsupported { feature });
         }
     }
     Ok(())