couple of clippy::complexity fixes
This commit is contained in:
parent
0d13f6afeb
commit
7c2d57e0fa
16 changed files with 25 additions and 29 deletions
|
@ -39,7 +39,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
}
|
||||
};
|
||||
|
||||
Constant { span, user_ty: None, literal: literal.into() }
|
||||
Constant { span, user_ty: None, literal }
|
||||
}
|
||||
ExprKind::NonHirLiteral { lit, user_ty } => {
|
||||
let user_ty = user_ty.map(|user_ty| {
|
||||
|
|
|
@ -423,11 +423,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
}
|
||||
thir::InlineAsmOperand::Const { value, span } => {
|
||||
mir::InlineAsmOperand::Const {
|
||||
value: Box::new(Constant {
|
||||
span,
|
||||
user_ty: None,
|
||||
literal: value.into(),
|
||||
}),
|
||||
value: Box::new(Constant { span, user_ty: None, literal: value }),
|
||||
}
|
||||
}
|
||||
thir::InlineAsmOperand::SymFn { expr } => mir::InlineAsmOperand::SymFn {
|
||||
|
|
|
@ -441,7 +441,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
// Need to experiment.
|
||||
user_ty: None,
|
||||
|
||||
literal: method.into(),
|
||||
literal: method,
|
||||
})),
|
||||
args: vec![val, expect],
|
||||
destination: Some((eq_result, eq_block)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue