We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4927e1 commit 794b7e0Copy full SHA for 794b7e0
riscv/src/register/mstatus.rs
@@ -602,11 +602,11 @@ mod test {
602
#[test]
603
fn test_mpp() {
604
let mut mstatus = Mstatus { bits: 0 };
605
- mstatus = mstatus.set_mpp(MPP::User);
+ mstatus.set_mpp(MPP::User);
606
assert_eq!(mstatus.mpp(), MPP::User);
607
- mstatus = mstatus.set_mpp(MPP::Machine);
+ mstatus.set_mpp(MPP::Machine);
608
assert_eq!(mstatus.mpp(), MPP::Machine);
609
- mstatus = mstatus.set_mpp(MPP::Supervisor);
+ mstatus.set_mpp(MPP::Supervisor);
610
assert_eq!(mstatus.mpp(), MPP::Supervisor);
611
}
612
0 commit comments