Skip to content

Commit

Permalink
Make clippy happy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Jun 25, 2020
1 parent 1d5c8e9 commit e9201c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/screen_capture/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl ScreenCapture for ScreenCaptureX11 {
fltk::app::unlock();
if err.is_err() {
self.img.data = std::ptr::null();
Err(err)?
Err(err.into())
} else {
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl WsHandler {

#[cfg(target_os = "linux")]
let capturables = x11ctx.as_mut().map_or_else(
|| Vec::new(),
Vec::new,
|ctx| ctx.capturables().unwrap_or_else(|_| Vec::new()),
);

Expand Down

0 comments on commit e9201c4

Please sign in to comment.