Skip to content

Commit 23ed7f2

Browse files
fix ci
1 parent e0af4b2 commit 23ed7f2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/viewer/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,9 @@ fn run_ui(rx: Receiver<KnowImage>, debug: bool, verbose: bool) -> Result<(), Box
125125
}
126126

127127
if let Some(img) = latest {
128-
if let Err(e) = show_image(&mut window, &mut buffer, &mut width, &mut height, img)
129-
&& (debug || verbose)
130-
{
131-
eprintln!("WARN: failed to display image: {e}");
128+
match show_image(&mut window, &mut buffer, &mut width, &mut height, img) {
129+
Err(e) if debug || verbose => eprintln!("WARN: failed to display image: {e}"),
130+
_ => {},
132131
}
133132
} else {
134133
window.update_with_buffer(&buffer, width, height)?;

0 commit comments

Comments
 (0)