Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

remove warn

fufesouf9950639e8a0
diff --git a/src/server/wayland.rs b/src/server/wayland.rs
index 137552661..1ebc7ad99 100644
--- a/src/server/wayland.rs
+++ b/src/server/wayland.rs
@@ -1,6 +1,6 @@
use super::*;
use hbb_common::{allow_err, platform::linux::DISTRO};
-use scrap::{is_cursor_embedded, set_map_err, Capturer, Display, Frame, TraitCapturer};
+use scrap::{is_cursor_embedded, set_map_err, Capturer, Frame, TraitCapturer};
use std::io;
use std::process::{Command, Output};
@@ -186,8 +186,7 @@ pub(super) async fn check_init() -> ResultType<()> {
maxy = max_height;
let capturer = Box::into_raw(Box::new(
- Capturer::new(display)
- .with_context(|| "Failed to create capturer")?,
+ Capturer::new(display).with_context(|| "Failed to create capturer")?,
));
let capturer = CapturerPtr(capturer);
let cap_display_info = Box::into_raw(Box::new(CapDisplayInfo {