File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
10
10
- Move from bors/manual merge to GH merge queue
11
11
- Add tools/check.py python script for local check
12
12
- Add changelog check on PRs
13
+ - Fix a compiler warning when casting a reference
13
14
14
15
## [ v0.10.0] - 2022-12-12
15
16
Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ where
353
353
unsafe { ptr:: read_volatile ( & self . spi . dr as * const _ as * const FrameSize ) }
354
354
}
355
355
356
+ #[ allow( invalid_reference_casting) ]
356
357
fn write_data_reg ( & mut self , data : FrameSize ) {
357
358
// NOTE(write_volatile) see note above
358
359
unsafe { ptr:: write_volatile ( & self . spi . dr as * const _ as * mut FrameSize , data) }
You can’t perform that action at this time.
0 commit comments