@@ -386,7 +386,7 @@ impl<'a> State<'a> {
386
386
}
387
387
hir:: ForeignItemKind :: Static ( ref t, m) => {
388
388
self . head ( visibility_qualified ( & item. vis , "static" ) ) ;
389
- if m == hir:: Mutability :: Mutable {
389
+ if m == hir:: Mutability :: Mut {
390
390
self . word_space ( "mut" ) ;
391
391
}
392
392
self . print_ident ( item. ident ) ;
@@ -502,7 +502,7 @@ impl<'a> State<'a> {
502
502
}
503
503
hir:: ItemKind :: Static ( ref ty, m, expr) => {
504
504
self . head ( visibility_qualified ( & item. vis , "static" ) ) ;
505
- if m == hir:: Mutability :: Mutable {
505
+ if m == hir:: Mutability :: Mut {
506
506
self . word_space ( "mut" ) ;
507
507
}
508
508
self . print_ident ( item. ident ) ;
@@ -1632,11 +1632,11 @@ impl<'a> State<'a> {
1632
1632
match binding_mode {
1633
1633
hir:: BindingAnnotation :: Ref => {
1634
1634
self . word_nbsp ( "ref" ) ;
1635
- self . print_mutability ( hir:: Mutability :: Immutable , false ) ;
1635
+ self . print_mutability ( hir:: Mutability :: Not , false ) ;
1636
1636
}
1637
1637
hir:: BindingAnnotation :: RefMut => {
1638
1638
self . word_nbsp ( "ref" ) ;
1639
- self . print_mutability ( hir:: Mutability :: Mutable , false ) ;
1639
+ self . print_mutability ( hir:: Mutability :: Mut , false ) ;
1640
1640
}
1641
1641
hir:: BindingAnnotation :: Unannotated => { }
1642
1642
hir:: BindingAnnotation :: Mutable => {
@@ -2065,8 +2065,8 @@ impl<'a> State<'a> {
2065
2065
2066
2066
pub fn print_mutability ( & mut self , mutbl : hir:: Mutability , print_const : bool ) {
2067
2067
match mutbl {
2068
- hir:: Mutability :: Mutable => self . word_nbsp ( "mut" ) ,
2069
- hir:: Mutability :: Immutable => if print_const { self . word_nbsp ( "const" ) } ,
2068
+ hir:: Mutability :: Mut => self . word_nbsp ( "mut" ) ,
2069
+ hir:: Mutability :: Not => if print_const { self . word_nbsp ( "const" ) } ,
2070
2070
}
2071
2071
}
2072
2072
0 commit comments