Skip to content

Commit ecd53bf

Browse files
committed
Fix a clippy warning
1 parent ae58637 commit ecd53bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sysfs_pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl embedded_hal::digital::InputPin for SysfsPin {
123123
}
124124

125125
fn is_low(&mut self) -> Result<bool, Self::Error> {
126-
self.is_high().map(|val| !val).map_err(SysfsPinError::from)
126+
self.is_high().map(|val| !val)
127127
}
128128
}
129129

0 commit comments

Comments
 (0)