We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ecd4d commit 1d95484Copy full SHA for 1d95484
src/cmd/mod.rs
@@ -109,7 +109,7 @@ pub enum CommandError {
109
#[derive(Debug, thiserror::Error)]
110
#[cfg_attr(unix, error(
111
"failed to kill the process with PID {pid}{}",
112
- .errno.map(|e| format!(": {}", e.desc())).unwrap_or_else(String::new)
+ .errno.map(|e| format!(": {}", e.desc())).unwrap_or_default()
113
))]
114
#[cfg_attr(not(unix), error("failed to kill the process with PID {pid}"))]
115
pub struct KillFailedError {
0 commit comments