Skip to content

Commit 327ffeb

Browse files
committed
fix: windows
1 parent b1acd50 commit 327ffeb

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/data_tree/hardlink.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ where
1111
Size: size::Size + Sync,
1212
{
1313
/// Reduce the size of the directories that have hardlinks.
14+
#[cfg_attr(not(unix), expect(unused))]
1415
pub(crate) fn par_deduplicate_hardlinks(&mut self, hardlink_info: &[(Size, Vec<&Path>)]) {
1516
if hardlink_info.is_empty() {
1617
return;

src/hardlink/hardlink_list.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ where
8383
Size: size::Size,
8484
{
8585
/// Add an entry to the record.
86+
#[cfg_attr(not(unix), expect(unused))]
8687
pub(crate) fn add(
8788
&self,
8889
ino: InodeNumber,

src/hardlink/link_path_list.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ pub struct LinkPathList(
2020

2121
impl LinkPathList {
2222
/// Create a list of a single path.
23+
#[cfg_attr(not(unix), expect(unused))]
2324
pub(crate) fn single(path: PathBuf) -> Self {
2425
LinkPathList(vec![path])
2526
}
2627

2728
/// Add a path to the list.
29+
#[cfg_attr(not(unix), expect(unused))]
2830
pub(crate) fn add(&mut self, path: PathBuf) {
2931
self.0.push(path)
3032
}

src/hardlink/record.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub struct Argument<'a, Size, Report: ?Sized> {
1212
pub use Argument as RecordHardlinksArgument;
1313

1414
impl<'a, Size, Report: ?Sized> Argument<'a, Size, Report> {
15+
#[cfg_attr(not(unix), expect(unused))]
1516
pub(crate) fn new(
1617
path: &'a Path,
1718
stats: &'a Metadata,

0 commit comments

Comments
 (0)