Some simple clippy::perf
fixes
This commit is contained in:
parent
1c39afb375
commit
f058d05fc2
5 changed files with 5 additions and 6 deletions
|
@ -149,7 +149,7 @@ mod rustc {
|
|||
.iter()
|
||||
.enumerate()
|
||||
.find(|(_, field_def)| name == field_def.name)
|
||||
.expect(&format!("There were no fields named `{name}`."));
|
||||
.unwrap_or_else(|| panic!("There were no fields named `{name}`."));
|
||||
fields[field_idx].unwrap_leaf() == ScalarInt::TRUE
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue