File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
20
20
### Fixed
21
21
22
22
- Fixed ` sip::set_ssoft ` and ` sip::clear_ssoft ` using wrong address
23
+ - Fixed assignment in ` mstatus ` unit tests.
23
24
24
25
## [ v0.11.1] - 2024-02-15
25
26
Original file line number Diff line number Diff line change @@ -602,11 +602,11 @@ mod test {
602
602
#[ test]
603
603
fn test_mpp ( ) {
604
604
let mut mstatus = Mstatus { bits : 0 } ;
605
- mstatus = mstatus . set_mpp ( MPP :: User ) ;
605
+ mstatus. set_mpp ( MPP :: User ) ;
606
606
assert_eq ! ( mstatus. mpp( ) , MPP :: User ) ;
607
- mstatus = mstatus . set_mpp ( MPP :: Machine ) ;
607
+ mstatus. set_mpp ( MPP :: Machine ) ;
608
608
assert_eq ! ( mstatus. mpp( ) , MPP :: Machine ) ;
609
- mstatus = mstatus . set_mpp ( MPP :: Supervisor ) ;
609
+ mstatus. set_mpp ( MPP :: Supervisor ) ;
610
610
assert_eq ! ( mstatus. mpp( ) , MPP :: Supervisor ) ;
611
611
}
612
612
}
You can’t perform that action at this time.
0 commit comments