mirror of
https://github.com/Drop-OSS/droplet.git
synced 2026-06-22 04:11:40 +10:00
fix: remove unnecessary size parameter causing windows build issues
This commit is contained in:
+1
-5
@@ -2,8 +2,7 @@
|
|||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
use std::{
|
use std::{
|
||||||
fs::{self, metadata, File},
|
fs::{self, metadata, File},
|
||||||
io::{BufReader, Read},
|
io::BufReader,
|
||||||
os::unix::fs::MetadataExt,
|
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -23,7 +22,6 @@ fn _list_files(vec: &mut Vec<PathBuf>, path: &Path) {
|
|||||||
|
|
||||||
pub struct VersionFile {
|
pub struct VersionFile {
|
||||||
pub relative_filename: String,
|
pub relative_filename: String,
|
||||||
pub size: u64,
|
|
||||||
pub permission: u32,
|
pub permission: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,11 +57,9 @@ impl VersionBackend for PathVersionBackend {
|
|||||||
}
|
}
|
||||||
perm
|
perm
|
||||||
};
|
};
|
||||||
let size = metadata.size();
|
|
||||||
|
|
||||||
results.push(VersionFile {
|
results.push(VersionFile {
|
||||||
relative_filename: relative.to_string_lossy().to_string(),
|
relative_filename: relative.to_string_lossy().to_string(),
|
||||||
size: size,
|
|
||||||
permission: permissions,
|
permission: permissions,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user