fix formatting
diff --git a/services/i2c/client/src/lib.rs b/services/i2c/client/src/lib.rs index 9b4cd2e..3eeafea 100644 --- a/services/i2c/client/src/lib.rs +++ b/services/i2c/client/src/lib.rs
@@ -137,7 +137,9 @@ return Err(ClientError::InvalidResponse); }; if !rhdr.is_success() { - return Err(ClientError::ServerError(rhdr.error_code().unwrap_or(I2cError::InternalError))); + return Err(ClientError::ServerError( + rhdr.error_code().unwrap_or(I2cError::InternalError), + )); } let n = rhdr.payload_length(); if resp_len < I2cResponseHeader::SIZE + n { @@ -236,7 +238,9 @@ return Err(ClientError::InvalidResponse); }; if !rhdr.is_success() { - return Err(ClientError::ServerError(rhdr.error_code().unwrap_or(I2cError::InternalError))); + return Err(ClientError::ServerError( + rhdr.error_code().unwrap_or(I2cError::InternalError), + )); } let payload_len = rhdr.payload_length(); @@ -308,7 +312,9 @@ if rhdr.is_success() { Ok(()) } else { - Err(ClientError::ServerError(rhdr.error_code().unwrap_or(I2cError::InternalError))) + Err(ClientError::ServerError( + rhdr.error_code().unwrap_or(I2cError::InternalError), + )) } } @@ -382,7 +388,9 @@ return Err(ClientError::InvalidResponse); }; if !rhdr.is_success() { - return Err(ClientError::ServerError(rhdr.error_code().unwrap_or(I2cError::InternalError))); + return Err(ClientError::ServerError( + rhdr.error_code().unwrap_or(I2cError::InternalError), + )); } let payload_len = rhdr.payload_length();
diff --git a/services/i2c/server-runtime/src/lib.rs b/services/i2c/server-runtime/src/lib.rs index f531aa0..19d42a4 100644 --- a/services/i2c/server-runtime/src/lib.rs +++ b/services/i2c/server-runtime/src/lib.rs
@@ -165,7 +165,9 @@ // SlaveRdProc: our TX bytes were clocked out, informational. // Unknown future events: ignore. // Do not update rx_event_kind or wake the client. - pw_log::debug!("slave IRQ: intermediate or unknown event, no latch update"); + pw_log::debug!( + "slave IRQ: intermediate or unknown event, no latch update" + ); } }, Ok(None) => {