Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Oct 5, 2023
1 parent 3818ab0 commit cbf6336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/packager/src/cli/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions crates/packager/src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit cbf6336

Please sign in to comment.