Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyuzhao committed May 23, 2024
1 parent 9efa3c9 commit c96feae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mallockit/dev/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn build_crate(opts: &Options) -> anyhow::Result<()> {
if !features.contains(&"malloc".to_owned()) && !opts.all_features {
features.push("malloc".to_string());
}
if features.len() > 0 {
if !features.is_empty() {
cmd.arg("--features").arg(features.join(","));
}
if opts.all_features {
Expand Down Expand Up @@ -97,12 +97,12 @@ fn main() -> anyhow::Result<()> {
cmd
} else if options.gdb {
let mut cmd = Command::new("rust-gdb");
cmd.args(&["-ex", &format!("set environment {ENV}={dylib}")]);
cmd.args(["-ex", &format!("set environment {ENV}={dylib}")]);
cmd.arg("--args").args(&args);
cmd
} else {
let mut cmd = Command::new("rust-lldb");
cmd.args(&["-o", &format!("env {ENV}={dylib}")]);
cmd.args(["-o", &format!("env {ENV}={dylib}")]);
cmd.arg("--source-quietly");
cmd.arg("--").args(&args);
cmd
Expand Down

0 comments on commit c96feae

Please sign in to comment.