Skip to content

Commit

Permalink
Fix a clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and djc committed Mar 7, 2024
1 parent d53cf6c commit 6de8c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ pub fn generate_flamegraph_for_workload(workload: Workload, opts: Options) -> an

let mut child = Command::new(
command_vec
.get(0)
.first()
.ok_or_else(|| anyhow!("unable to parse post-process command"))?,
)
.args(command_vec.get(1..).unwrap_or(&[]))
Expand Down

0 comments on commit 6de8c66

Please sign in to comment.