remove warn

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-04-28 13:22:31 +08:00
parent 84ab9ba48e
commit 6b84106aff

View File

@ -274,7 +274,7 @@ fn create_capturer(
fn ensure_close_virtual_device() -> ResultType<()> {
let num_displays = Display::all()?.len();
if num_displays > 1 {
virtual_display_manager::plug_out_headless();
let _res = virtual_display_manager::plug_out_headless();
}
Ok(())
}