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

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 28 16:43:16 UTC 2020


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

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(())



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


More information about the Mercurial-devel mailing list