File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ pub fn _try_read_csr() -> Result<Mtest> {
55
55
56
56
#[ allow( unused) ]
57
57
pub fn _write_csr ( csr : Mtest ) {
58
- write ( csr) ;
58
+ unsafe { write ( csr) } ;
59
59
}
60
60
61
61
#[ allow( unused) ]
62
62
pub fn _try_write_csr ( csr : Mtest ) {
63
- try_write ( csr) ;
63
+ unsafe { try_write ( csr) } ;
64
64
}
65
65
66
66
#[ test]
Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ write_only_csr_field! {
45
45
// we don't test the `write` function, we are only testing in-memory functions.
46
46
#[ allow( unused) ]
47
47
pub fn _write_csr ( csr : Mtest ) {
48
- write ( csr) ;
48
+ unsafe { write ( csr) } ;
49
49
}
50
50
51
51
#[ allow( unused) ]
52
52
pub fn _try_write_csr ( csr : Mtest ) -> Result < ( ) > {
53
- try_write ( csr)
53
+ unsafe { try_write ( csr) }
54
54
}
55
55
56
56
#[ test]
You can’t perform that action at this time.
0 commit comments