diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-25 14:34:11 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-25 15:35:11 +0200 |
commit | 085cd3c968de88a07251237232eb51c3d6ba26d8 (patch) | |
tree | 1a5749d500a49e6308ce43ecc56c990057ddec87 /src/lib.rs | |
parent | cf529f12223f571739ae33a4e2e9d31c27ba692d (diff) | |
download | summain-rs-085cd3c968de88a07251237232eb51c3d6ba26d8.tar.gz |
refactor: use rayon to get some parallelism
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ const BUF_SIZE: usize = 1024 * 1024; /// An entry in a file manifest. #[derive(Serialize, Debug)] pub struct ManifestEntry { - path: PathBuf, + path: String, #[serde(with = "mode")] mode: u32, mtime: i64, @@ -73,7 +73,7 @@ impl ManifestEntry { None }; Ok(Self { - path: path.to_path_buf(), + path: path.to_string_lossy().into_owned(), mode: m.st_mode(), mtime: m.st_mtime(), mtime_nsec: m.st_mtime_nsec(), |