Skip to content

Commit 1f39149

Browse files
committed
fixed formatting issues
1 parent 636d056 commit 1f39149

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/linux.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ impl<'a> I2CTransfer<'a> for LinuxI2CDevice {
306306
msg.addr = self.slave_address;
307307

308308
let cur_msg_type = msg_type(msg.flags);
309-
if prev_msg_type.map(|prev| prev == cur_msg_type).unwrap_or_default() {
309+
if prev_msg_type
310+
.map(|prev| prev == cur_msg_type)
311+
.unwrap_or_default()
312+
{
310313
msg.flags |= I2CMessageFlags::NO_START.bits();
311314
} else {
312315
prev_msg_type = Some(cur_msg_type);

0 commit comments

Comments
 (0)