From f9950639e8a04c8120bd2020dfb86e7f026b7010 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 12 Nov 2023 11:49:38 +0800 Subject: [PATCH] remove warn Signed-off-by: fufesou --- src/server/wayland.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {