remove warn
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
8f8c9ddc25
commit
f9950639e8
@ -1,6 +1,6 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
use hbb_common::{allow_err, platform::linux::DISTRO};
|
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::io;
|
||||||
use std::process::{Command, Output};
|
use std::process::{Command, Output};
|
||||||
|
|
||||||
@ -186,8 +186,7 @@ pub(super) async fn check_init() -> ResultType<()> {
|
|||||||
maxy = max_height;
|
maxy = max_height;
|
||||||
|
|
||||||
let capturer = Box::into_raw(Box::new(
|
let capturer = Box::into_raw(Box::new(
|
||||||
Capturer::new(display)
|
Capturer::new(display).with_context(|| "Failed to create capturer")?,
|
||||||
.with_context(|| "Failed to create capturer")?,
|
|
||||||
));
|
));
|
||||||
let capturer = CapturerPtr(capturer);
|
let capturer = CapturerPtr(capturer);
|
||||||
let cap_display_info = Box::into_raw(Box::new(CapDisplayInfo {
|
let cap_display_info = Box::into_raw(Box::new(CapDisplayInfo {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user