fix build target windows check errors

This commit is contained in:
weisd
2025-02-10 15:44:07 +08:00
parent ea78c416d0
commit 9861361aee
4 changed files with 14 additions and 8 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
use super::IOStats;
use crate::{disk::Info, error::Result};
use std::io::{Error, ErrorKind, Result as IoResult};
use std::io::{Error, ErrorKind};
use std::mem;
use std::os::windows::ffi::OsStrExt;
use std::path::Path;
@@ -135,10 +135,10 @@ fn get_fs_type(p: &[WCHAR]) -> Result<String> {
Ok(utf16_to_string(&lp_file_system_name_buffer))
}
pub fn same_disk(disk1: &str, disk2: &str) -> Result<bool> {
pub fn same_disk(_add_extensiondisk1: &str, _disk2: &str) -> Result<bool> {
Ok(false)
}
pub fn get_drive_stats(major: u32, minor: u32) -> Result<IOStats> {
pub fn get_drive_stats(_major: u32, _minor: u32) -> Result<IOStats> {
Ok(IOStats::default())
}