changeset 44191:732098027b34

rust: re-format with nightly rustfmt This fixes test-check-rust-format.t. Differential Revision: https://phab.mercurial-scm.org/D8025
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 28 Jan 2020 10:40:19 -0800
parents 5de70f798ea7
children d6d4170882cd
files rust/hg-core/src/utils/hg_path.rs
diffstat 1 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/utils/hg_path.rs	Tue Jan 28 22:03:00 2020 -0500
+++ b/rust/hg-core/src/utils/hg_path.rs	Tue Jan 28 10:40:19 2020 -0800
@@ -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) {