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