We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773836d commit 7d2ebaaCopy full SHA for 7d2ebaa
CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
10
- Move from bors/manual merge to GH merge queue
11
- Add tools/check.py python script for local check
12
- Add changelog check on PRs
13
+- Fix a compiler warning when casting a reference
14
15
## [v0.10.0] - 2022-12-12
16
src/spi.rs
@@ -353,6 +353,7 @@ where
353
unsafe { ptr::read_volatile(&self.spi.dr as *const _ as *const FrameSize) }
354
}
355
356
+ #[allow(invalid_reference_casting)]
357
fn write_data_reg(&mut self, data: FrameSize) {
358
// NOTE(write_volatile) see note above
359
unsafe { ptr::write_volatile(&self.spi.dr as *const _ as *mut FrameSize, data) }
0 commit comments