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/).
2020### Fixed
2121
2222- Fixed ` sip::set_ssoft ` and ` sip::clear_ssoft ` using wrong address
23+ - Fixed assignment in ` mstatus ` unit tests.
2324
2425## [ v0.11.1] - 2024-02-15
2526
Original file line number Diff line number Diff line change @@ -602,11 +602,11 @@ mod test {
602602 #[ test]
603603 fn test_mpp ( ) {
604604 let mut mstatus = Mstatus { bits : 0 } ;
605- mstatus = mstatus . set_mpp ( MPP :: User ) ;
605+ mstatus. set_mpp ( MPP :: User ) ;
606606 assert_eq ! ( mstatus. mpp( ) , MPP :: User ) ;
607- mstatus = mstatus . set_mpp ( MPP :: Machine ) ;
607+ mstatus. set_mpp ( MPP :: Machine ) ;
608608 assert_eq ! ( mstatus. mpp( ) , MPP :: Machine ) ;
609- mstatus = mstatus . set_mpp ( MPP :: Supervisor ) ;
609+ mstatus. set_mpp ( MPP :: Supervisor ) ;
610610 assert_eq ! ( mstatus. mpp( ) , MPP :: Supervisor ) ;
611611 }
612612}
You can’t perform that action at this time.
0 commit comments