mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
touch: fix err_expect
clippy error
This commit is contained in:
parent
b8f2f295a6
commit
d2a0a73a36
1 changed files with 1 additions and 2 deletions
|
@ -589,8 +589,7 @@ mod tests {
|
||||||
// We can trigger an error by not setting stdout to anything (will
|
// We can trigger an error by not setting stdout to anything (will
|
||||||
// fail with code 1)
|
// fail with code 1)
|
||||||
assert!(super::pathbuf_from_stdout()
|
assert!(super::pathbuf_from_stdout()
|
||||||
.err()
|
.expect_err("pathbuf_from_stdout should have failed")
|
||||||
.expect("pathbuf_from_stdout should have failed")
|
|
||||||
.to_string()
|
.to_string()
|
||||||
.contains("GetFinalPathNameByHandleW failed with code 1"));
|
.contains("GetFinalPathNameByHandleW failed with code 1"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue