Skip to content

Commit

Permalink
{icm20698, leak, pca9685}: Remove 'error' from format string
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Nov 27, 2024
1 parent 0e90ec0 commit 5b8881a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/icm20689.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ mod tests {
fn test_icm20689_pi_4() {
let mut imu = Icm20689Device::builder()
.build()
.expect("Failed to build ICM20689: {error:?}");
.expect("Failed to build ICM20689");
for _ in 0..10 {
println!("ICM20689 gyroscope: {:?}", imu.read_angular_velocity());
println!("ICM20689 accelerometers: {:?}", imu.read_acceleration());
Expand Down
2 changes: 1 addition & 1 deletion src/leak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mod tests {
fn test_leak_pi_4() {
let leak = LeakDetector::builder()
.build()
.expect("Failed to build leak detector: {error:?}");
.expect("Failed to build leak detector");
for _ in 0..10 {
println!("Leak detector: {}", leak.is_leak_detected().unwrap());
sleep(Duration::from_millis(1000));
Expand Down
2 changes: 1 addition & 1 deletion src/pca9685.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ mod tests {
for channel in 0..16 {
println!("PCA9685: Channel {channel} value {duty_cycle:.1}");
pwm.set_duty_cycle(channel, duty_cycle)
.expect("Error in setting duty cycle: {error:?}");
.expect("Error in setting duty cycle");
sleep(Duration::from_millis(100));
}
}
Expand Down

0 comments on commit 5b8881a

Please sign in to comment.