Skip to content

Commit fcc2396

Browse files
committed
fix: windows
1 parent ad7c321 commit fcc2396

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/hardlink/deduplicate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub trait DeduplicateSharedSize<Size: size::Size>: Sized {
1616
}
1717

1818
/// Do deduplicate the sizes of hardlinks.
19+
#[cfg(unix)]
1920
pub type Do<Size> = super::HardlinkAware<Size>;
2021
/// Do not deduplicate the sizes of hardlinks.
2122
pub type DoNot = super::HardlinkIgnorant;

src/hardlink/record.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub trait RecordHardlinks<Size, Reporter: ?Sized> {
3636
}
3737

3838
/// Do detect and record hardlinks.
39+
#[cfg(unix)]
3940
pub type Do<Size> = super::HardlinkAware<Size>;
4041
/// Do not detect nor record hardlinks.
4142
pub type DoNot = super::HardlinkIgnorant;

0 commit comments

Comments
 (0)