Skip to content

Commit e5c0029

Browse files
committed
Add Debug implementation for Spidev
1 parent b469e33 commit e5c0029

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[Full Changelog](https://github.com/rust-embedded/rust-spidev/compare/0.4.1...HEAD)
66

7+
- Added `Debug` implementation for `Spidev`
78
- Added `Default` implementation for `SpidevOptions`
89
- Nix bumped to 0.22
910
- bitflags updated to 1.3

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ bitflags! {
115115
}
116116

117117
/// Provide high-level access to Linux Spidev Driver
118+
#[derive(Debug)]
118119
pub struct Spidev {
119120
devfile: File,
120121
}

0 commit comments

Comments
 (0)