Skip to content

Commit cf398a3

Browse files
committed
removes unnecessary tidy ignore
1 parent 15e81be commit cf398a3

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/librustc_middle/mir/mod.rs

+2-12
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//!
33
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/mir/index.html
44
5-
// ignore-tidy-filelength
6-
75
use crate::mir::interpret::{GlobalAlloc, Scalar};
86
use crate::mir::visit::MirVisitable;
97
use crate::ty::adjustment::PointerCast;
@@ -299,11 +297,7 @@ impl<'tcx> Body<'tcx> {
299297
pub fn temps_iter<'a>(&'a self) -> impl Iterator<Item = Local> + 'a {
300298
(self.arg_count + 1..self.local_decls.len()).filter_map(move |index| {
301299
let local = Local::new(index);
302-
if self.local_decls[local].is_user_variable() {
303-
None
304-
} else {
305-
Some(local)
306-
}
300+
if self.local_decls[local].is_user_variable() { None } else { Some(local) }
307301
})
308302
}
309303

@@ -1190,11 +1184,7 @@ impl<'tcx> BasicBlockData<'tcx> {
11901184
}
11911185

11921186
pub fn visitable(&self, index: usize) -> &dyn MirVisitable<'tcx> {
1193-
if index < self.statements.len() {
1194-
&self.statements[index]
1195-
} else {
1196-
&self.terminator
1197-
}
1187+
if index < self.statements.len() { &self.statements[index] } else { &self.terminator }
11981188
}
11991189
}
12001190

0 commit comments

Comments
 (0)