mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-11 07:13:30 -07:00
Fix tplink clippy warnings
This commit is contained in:
committed by
Markus Unterwaditzer
parent
4ad79707bb
commit
25978a4da4
@@ -68,7 +68,7 @@ impl GenericFramebuffer for Framebuffer {
|
||||
);
|
||||
|
||||
if res < 0 {
|
||||
panic!("failed to send FBIORECT_DISPLAY ioctl, {}", res);
|
||||
panic!("failed to send FBIORECT_DISPLAY ioctl, {res}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ pub fn update_ui(
|
||||
// we write the status every second because it may have been overwritten through menu
|
||||
// navigation.
|
||||
if display_level != 0 {
|
||||
if let Err(e) = fs::write(OLED_PATH, &pixels) {
|
||||
if let Err(e) = fs::write(OLED_PATH, pixels) {
|
||||
error!("failed to write to display: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user