File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -642,7 +642,7 @@ pub fn fields(
642
642
///Writes raw bits to the field
643
643
#inline
644
644
pub #unsafety fn #bits( self , value: #fty) -> & ' a mut W {
645
- self . w. bits = ( self . w. bits & !( #hexmask << self . offset) ) | ( ( ( value as #rty) & #hexmask) << self . offset) ;
645
+ self . w. bits = ( self . w. bits & !( #hexmask << self . offset) ) | ( ( value as #rty & #hexmask) << self . offset) ;
646
646
self . w
647
647
}
648
648
}
@@ -652,7 +652,7 @@ pub fn fields(
652
652
///Writes raw bits to the field
653
653
#inline
654
654
pub #unsafety fn #bits( self , value: #fty) -> & ' a mut W {
655
- self . w. bits = ( self . w. bits & !( #hexmask << #offset) ) | ( ( ( value as #rty) & #hexmask) << #offset) ;
655
+ self . w. bits = ( self . w. bits & !( #hexmask << #offset) ) | ( ( value as #rty & #hexmask) << #offset) ;
656
656
self . w
657
657
}
658
658
}
@@ -661,7 +661,7 @@ pub fn fields(
661
661
///Writes raw bits to the field
662
662
#inline
663
663
pub #unsafety fn #bits( self , value: #fty) -> & ' a mut W {
664
- self . w. bits = ( self . w. bits & !#hexmask) | ( ( value as #rty) & #hexmask) ;
664
+ self . w. bits = ( self . w. bits & !#hexmask) | ( value as #rty & #hexmask) ;
665
665
self . w
666
666
}
667
667
}
You can’t perform that action at this time.
0 commit comments