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 63d6867 commit 0b13eeaCopy full SHA for 0b13eea
CHANGELOG.md
@@ -4,6 +4,7 @@
4
5
[Full Changelog](https://github.com/rust-embedded/rust-spidev/compare/0.4.1...HEAD)
6
7
+- Added `Default` implementation for `SpidevOptions`
8
- Nix bumped to 0.22
9
- bitflags updated to 1.3
10
- Minimum supported rust version is now 1.46.0
src/lib.rs
@@ -128,7 +128,7 @@ pub struct Spidev {
128
/// Options that are not configured with one of the builder
129
/// functions will not be modified in the kernel when
130
/// `configure` is called.
131
-#[derive(Clone)]
+#[derive(Default, Clone)]
132
pub struct SpidevOptions {
133
pub bits_per_word: Option<u8>,
134
pub max_speed_hz: Option<u32>,
0 commit comments