Skip to content

Commit

Permalink
Remove Default implementation for driver struct
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jun 7, 2021
1 parent 2659287 commit 0b77df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Checking if an interrupt has happened.

### Changed
- [breaking-change] Remove implementing `Default` for `Max44009`.
- Make types `ConfigurationMode`, `CurrentDivisionRatio`, `IntegrationTime`,
`MeasurementMode` and `SlaveAddr` implement `Copy`.

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -149,7 +149,7 @@ impl BitFlags {
}

/// MAX44009 ambient light sensor driver.
#[derive(Debug, Default)]
#[derive(Debug)]
pub struct Max44009<I2C> {
/// The concrete I²C device implementation.
i2c: I2C,
Expand Down

0 comments on commit 0b77df9

Please sign in to comment.