Skip to content

Commit e3244dc

Browse files
committed
Apply clippy suggestions
1 parent 7b0b4f2 commit e3244dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/cargo-flamegraph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn workload(opt: &Opt, artifacts: &[Artifact]) -> anyhow::Result<Vec<String>> {
202202

203203
const NONE: u32 = 0;
204204
if !opt.dev && debug_level.unwrap_or(NONE) == NONE {
205-
let profile = match opt.example.as_ref().or_else(|| opt.bin.as_ref()) {
205+
let profile = match opt.example.as_ref().or(opt.bin.as_ref()) {
206206
Some(_) => "release",
207207
// tests use the bench profile in release mode.
208208
_ => "bench",

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ mod arch {
160160
if i > 0 {
161161
escaped.push(' ');
162162
}
163-
escaped.push_str(&arg.replace(" ", "\\ "));
163+
escaped.push_str(&arg.replace(' ', "\\ "));
164164
}
165165

166166
command.arg("-c");

0 commit comments

Comments
 (0)