Skip to content

Commit 8cbac82

Browse files
committed
clippy
1 parent 1f09dd2 commit 8cbac82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/backtrace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
3737
let this = self.eval_context_mut();
3838
let tcx = this.tcx;
3939

40-
let flags = if let Some(flags_op) = args.get(0) {
40+
let flags = if let Some(flags_op) = args.first() {
4141
this.read_scalar(flags_op)?.to_u64()?
4242
} else {
4343
throw_ub_format!("expected at least 1 argument")

0 commit comments

Comments
 (0)