Skip to content

Commit 4328b27

Browse files
committed
Improve syntax
1 parent e40f6eb commit 4328b27

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/app_mode.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ fn get_raw_environment_data(value: f32) -> (u8, u8) {
159159
}
160160

161161
fn handle_raw_data(data0: u8, data1: u8) -> (u8, u16) {
162-
(
163-
(data1 >> 2),
164-
u16::from(data0) | (u16::from(data1 & 0x3) << 8),
165-
)
162+
(data1 >> 2, u16::from(data0) | (u16::from(data1 & 0x3) << 8))
166163
}
167164

168165
impl<I2C, CommE, PinE, NWAKE, WAKEDELAY> Ccs811AppMode for Ccs811<I2C, NWAKE, WAKEDELAY, mode::App>

0 commit comments

Comments
 (0)