Use Mutability::{is_mut, is_not}
This commit is contained in:
parent
fd649a3cc5
commit
4d75f61832
11 changed files with 13 additions and 21 deletions
|
@ -44,7 +44,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
let expr_ty = expr.ty;
|
||||
let temp = {
|
||||
let mut local_decl = LocalDecl::new(expr_ty, expr_span);
|
||||
if mutability == Mutability::Not {
|
||||
if mutability.is_not() {
|
||||
local_decl = local_decl.immutable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue