aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index eba0943..9bbe39f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -125,8 +125,7 @@ fn work() -> Result<(), Error> {
.collect::<Result<Vec<_>, Error>>()?;
/* Sort the src/dst pairs so that the sources with the longest componenets
- * come first.
- */
+ come first. */
src_dst.sort_by_key(|(s, _)| Reverse(s.components().count()));
let dir = tempdir()?;