clippy::complexity fixes
filter_map_identity needless_bool search_is_some unit_arg map_identity needless_question_mark derivable_impls
This commit is contained in:
parent
27d8a57713
commit
d707461a1a
9 changed files with 14 additions and 33 deletions
|
@ -21,7 +21,7 @@ pub trait ValueVisitor<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>>: Sized {
|
|||
/// `read_discriminant` can be hooked for better error messages.
|
||||
#[inline(always)]
|
||||
fn read_discriminant(&mut self, v: &Self::V) -> InterpResult<'tcx, VariantIdx> {
|
||||
Ok(self.ecx().read_discriminant(&v.to_op(self.ecx())?)?)
|
||||
self.ecx().read_discriminant(&v.to_op(self.ecx())?)
|
||||
}
|
||||
|
||||
/// This function provides the chance to reorder the order in which fields are visited for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue