Skip to content

Commit

Permalink
removed needles mutable move
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Garcia committed Feb 4, 2023
1 parent 3174cdc commit 47c45b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl<Mode, I2C> SHT31<Mode, I2C>
I2C: i2c::WriteRead + i2c::Write,
{
/// Changes the SHT31 mode
pub fn with_mode<NewMode>(mut self, mode: NewMode) -> SHT31<NewMode, I2C> {
pub fn with_mode<NewMode>(self, mode: NewMode) -> SHT31<NewMode, I2C> {
SHT31 {
mode,
i2c: self.i2c,
Expand Down

0 comments on commit 47c45b7

Please sign in to comment.