Skip to content

Commit 3848e6c

Browse files
authored
Merge branch 'main' into 6175-env-empty-string
2 parents 696dd3c + 6a828f0 commit 3848e6c

File tree

10 files changed

+832
-627
lines changed

10 files changed

+832
-627
lines changed

.clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
msrv = "1.85.0"
12
avoid-breaking-exported-api = false
23
check-private-items = true
34
cognitive-complexity-threshold = 24

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ thiserror = "2.0.3"
342342
time = { version = "0.3.36" }
343343
unicode-segmentation = "1.11.0"
344344
unicode-width = "0.2.0"
345-
utf-8 = "0.7.6"
346345
utmp-classic = "0.1.6"
347346
uutils_term_grid = "0.7"
348347
walkdir = "2.5"

src/uu/cp/src/cp.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,13 +1259,17 @@ fn parse_path_args(
12591259
return Err("missing file operand".into());
12601260
} else if paths.len() == 1 && options.target_dir.is_none() {
12611261
// Only one file specified
1262-
return Err(format!("missing destination file operand after {:?}", paths[0]).into());
1262+
return Err(format!(
1263+
"missing destination file operand after {}",
1264+
paths[0].display().to_string().quote()
1265+
)
1266+
.into());
12631267
}
12641268

12651269
// Return an error if the user requested to copy more than one
12661270
// file source to a file target
12671271
if options.no_target_dir && options.target_dir.is_none() && paths.len() > 2 {
1268-
return Err(format!("extra operand {:?}", paths[2]).into());
1272+
return Err(format!("extra operand {:}", paths[2].display().to_string().quote()).into());
12691273
}
12701274

12711275
let target = match options.target_dir {

src/uu/cp/src/platform/macos.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ pub(crate) fn copy_on_write(
8484
// support COW).
8585
match reflink_mode {
8686
ReflinkMode::Always => {
87-
return Err(format!("failed to clone {source:?} from {dest:?}: {error}").into());
87+
return Err(format!(
88+
"failed to clone {} from {}: {error}",
89+
source.display(),
90+
dest.display()
91+
)
92+
.into());
8893
}
8994
_ => {
9095
copy_debug.reflink = OffloadReflinkDebug::Yes;

src/uu/more/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ crossterm = { workspace = true, features = ["use-dev-tty"] }
3333
[[bin]]
3434
name = "more"
3535
path = "src/main.rs"
36+
37+
[dev-dependencies]
38+
tempfile = { workspace = true }

0 commit comments

Comments
 (0)