Patchwork D8025: rust: re-format with nightly rustfmt

login
register
mail settings
Submitter phabricator
Date Jan. 29, 2020, 11:18 p.m.
Message ID <8395600f06b7ed85176fc70d6d9783e1@localhost.localdomain>
Download mbox | patch
Permalink /patch/44737/
State Not Applicable
Headers show

Comments

phabricator - Jan. 29, 2020, 11:18 p.m.
Closed by commit rHG732098027b34: rust: re-format with nightly rustfmt (authored by martinvonz).
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/D8025?vs=19654&id=19677

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

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

AFFECTED FILES
  rust/hg-core/src/utils/hg_path.rs

CHANGE DETAILS




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

Patch

diff --git a/rust/hg-core/src/utils/hg_path.rs b/rust/hg-core/src/utils/hg_path.rs
--- a/rust/hg-core/src/utils/hg_path.rs
+++ b/rust/hg-core/src/utils/hg_path.rs
@@ -142,22 +142,24 @@ 
     #[cfg(windows)]
     /// Copied from the Python stdlib's `os.path.splitdrive` implementation.
     ///
-    /// Split a pathname into drive/UNC sharepoint and relative path specifiers.
-    /// Returns a 2-tuple (drive_or_unc, path); either part may be empty.
+    /// Split a pathname into drive/UNC sharepoint and relative path
+    /// specifiers. Returns a 2-tuple (drive_or_unc, path); either part may
+    /// be empty.
     ///
     /// If you assign
     ///  result = split_drive(p)
     /// It is always true that:
     ///  result[0] + result[1] == p
     ///
-    /// If the path contained a drive letter, drive_or_unc will contain everything
-    /// up to and including the colon.
+    /// If the path contained a drive letter, drive_or_unc will contain
+    /// everything up to and including the colon.
     /// e.g. split_drive("c:/dir") returns ("c:", "/dir")
     ///
-    /// If the path contained a UNC path, the drive_or_unc will contain the host
-    /// name and share up to but not including the fourth directory separator
-    /// character.
-    /// e.g. split_drive("//host/computer/dir") returns ("//host/computer", "/dir")
+    /// If the path contained a UNC path, the drive_or_unc will contain the
+    /// host name and share up to but not including the fourth directory
+    /// separator character.
+    /// e.g. split_drive("//host/computer/dir") returns ("//host/computer",
+    /// "/dir")
     ///
     /// Paths cannot contain both a drive letter and a UNC path.
     pub fn split_drive<'a>(&self) -> (&HgPath, &HgPath) {