changeset 48227:4518d91f02d8

rust: Reformat source code This fixes test-check-rust-format.t which is currently failing on the default branch. Differential Revision: https://phab.mercurial-scm.org/D11657
author Simon Sapin <simon.sapin@octobus.net>
date Thu, 14 Oct 2021 13:58:25 +0200
parents 5e77bdc29d56
children 50dca3aa5c3b
files rust/hg-core/src/revlog/revlog.rs
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/revlog.rs	Thu Oct 14 13:34:37 2021 +0100
+++ b/rust/hg-core/src/revlog/revlog.rs	Thu Oct 14 13:58:25 2021 +0200
@@ -76,7 +76,8 @@
                 Some(index_mmap) => {
                     let version = get_version(&index_mmap)?;
                     if version != 1 {
-                        // A proper new version should have had a repo/store requirement.
+                        // A proper new version should have had a repo/store
+                        // requirement.
                         return Err(HgError::corrupted("corrupted revlog"));
                     }
 
@@ -428,6 +429,6 @@
             .with_version(1)
             .build();
 
-        assert_eq!(get_version(&bytes).map_err(|_err|()), Ok(1))
+        assert_eq!(get_version(&bytes).map_err(|_err| ()), Ok(1))
     }
 }