Skip to content

Commit 1d95484

Browse files
committed
fix new clippy warnings
1 parent 50ecd4d commit 1d95484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub enum CommandError {
109109
#[derive(Debug, thiserror::Error)]
110110
#[cfg_attr(unix, error(
111111
"failed to kill the process with PID {pid}{}",
112-
.errno.map(|e| format!(": {}", e.desc())).unwrap_or_else(String::new)
112+
.errno.map(|e| format!(": {}", e.desc())).unwrap_or_default()
113113
))]
114114
#[cfg_attr(not(unix), error("failed to kill the process with PID {pid}"))]
115115
pub struct KillFailedError {

0 commit comments

Comments
 (0)