mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
touch: fix err_expect clippy error
This commit is contained in:
@@ -589,8 +589,7 @@ mod tests {
|
||||
// We can trigger an error by not setting stdout to anything (will
|
||||
// fail with code 1)
|
||||
assert!(super::pathbuf_from_stdout()
|
||||
.err()
|
||||
.expect("pathbuf_from_stdout should have failed")
|
||||
.expect_err("pathbuf_from_stdout should have failed")
|
||||
.to_string()
|
||||
.contains("GetFinalPathNameByHandleW failed with code 1"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user