Skip to content

Commit 9b4d5e9

Browse files
committed
run cargo fmt on the recent change
1 parent ead5084 commit 9b4d5e9

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/uu/cp/src/copydir.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,13 @@ pub(crate) fn copy_directory(
574574
let dest = target.join(root.file_name().unwrap());
575575
for (x, y) in aligned_ancestors(root, dest.as_path()) {
576576
if let Ok(src) = canonicalize(x, MissingHandling::Normal, ResolveMode::Physical) {
577-
copy_attributes(&src, y, &options.attributes, false, options.set_selinux_context)?;
577+
copy_attributes(
578+
&src,
579+
y,
580+
&options.attributes,
581+
false,
582+
options.set_selinux_context,
583+
)?;
578584

579585
#[cfg(all(feature = "selinux", target_os = "linux"))]
580586
if options.set_selinux_context {

src/uu/cp/src/cp.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,13 @@ fn copy_source(
15651565
if options.parents {
15661566
for (x, y) in aligned_ancestors(source, dest.as_path()) {
15671567
if let Ok(src) = canonicalize(x, MissingHandling::Normal, ResolveMode::Physical) {
1568-
copy_attributes(&src, y, &options.attributes, false, options.set_selinux_context)?;
1568+
copy_attributes(
1569+
&src,
1570+
y,
1571+
&options.attributes,
1572+
false,
1573+
options.set_selinux_context,
1574+
)?;
15691575
}
15701576
}
15711577
}

0 commit comments

Comments
 (0)