Skip to content

Commit cbbd075

Browse files
committed
fix: windows
1 parent 3752a42 commit cbbd075

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/hardlink/hardlink_list.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ use crate::{hardlink::LinkPathList, inode::InodeNumber, size};
1313
use dashmap::DashMap;
1414
use derive_more::{Display, Error};
1515
use smart_default::SmartDefault;
16-
use std::{fmt::Debug, path::Path};
16+
use std::fmt::Debug;
1717

18-
#[cfg_attr(not(unix), cfg(expect(unused)))]
18+
#[cfg_attr(not(unix), expect(unused))]
1919
use pipe_trait::Pipe;
20+
#[cfg_attr(not(unix), expect(unused))]
21+
use std::path::Path;
2022

2123
/// Map value in [`HardlinkList`].
2224
#[derive(Debug, Clone)]

src/hardlink/link_path_list.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub struct LinkPathList(Vec<PathBuf>);
1919

2020
impl LinkPathList {
2121
/// Create a list of a single path.
22+
#[cfg_attr(not(unix), expect(unused))]
2223
pub(crate) fn single(path: PathBuf) -> Self {
2324
LinkPathList(vec![path])
2425
}
@@ -32,6 +33,7 @@ impl LinkPathList {
3233
}
3334

3435
/// Add a path to the list.
36+
#[cfg_attr(not(unix), expect(unused))]
3537
pub(crate) fn add(&mut self, path: PathBuf) {
3638
self.0.push(path)
3739
}

0 commit comments

Comments
 (0)