fix: remove AsRawFd import (unix-only, não existe no Windows)
This commit is contained in:
@@ -175,9 +175,7 @@ impl PrinterManager {
|
|||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
fn test_device(&self, path: &str) -> bool {
|
fn test_device(&self, path: &str) -> bool {
|
||||||
use std::os::windows::io::AsRawFd;
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
// Try opening the device
|
|
||||||
let out = Command::new("cmd")
|
let out = Command::new("cmd")
|
||||||
.args(["/C", &format!("type {} < nul 2>&1", path)])
|
.args(["/C", &format!("type {} < nul 2>&1", path)])
|
||||||
.output();
|
.output();
|
||||||
|
|||||||
Reference in New Issue
Block a user