diff --git a/crates/packager/src/cli/config.rs b/crates/packager/src/cli/config.rs index f97fe8c9..a9646774 100644 --- a/crates/packager/src/cli/config.rs +++ b/crates/packager/src/cli/config.rs @@ -129,7 +129,7 @@ pub fn load_configs_from_cargo_workspace( .first() .map(|a| { let a = a.replace(['_', ' ', '.'], "-").to_lowercase(); - a.strip_suffix("_").map(ToString::to_string).unwrap_or(a) + a.strip_suffix('_').map(ToString::to_string).unwrap_or(a) }) .unwrap_or_else(|| format!("{}-author", package.name)); config diff --git a/crates/packager/src/shell.rs b/crates/packager/src/shell.rs index 164902c4..dda9000d 100644 --- a/crates/packager/src/shell.rs +++ b/crates/packager/src/shell.rs @@ -41,7 +41,7 @@ impl CommandExt for Command { loop { buf.clear(); match stdout.read_line(&mut buf) { - Ok(s) if s == 0 => break, + Ok(0) => break, _ => (), } tracing::debug!("{}", buf.strip_suffix('\n').unwrap_or_else(|| &buf)); @@ -58,7 +58,7 @@ impl CommandExt for Command { loop { buf.clear(); match stderr.read_line(&mut buf) { - Ok(s) if s == 0 => break, + Ok(0) => break, _ => (), } tracing::debug!("{}", buf.strip_suffix('\n').unwrap_or_else(|| &buf));