Skip to content

Commit 2830d9e

Browse files
committed
fix: windows
1 parent 327ffeb commit 2830d9e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/hardlink/hardlink_list.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ impl<Size> HardlinkList<Size> {
6060
}
6161
}
6262

63-
/// Error that occurs when a different size was detected for the same [`ino`](std::os::unix::fs::MetadataExt::ino).
63+
/// Error that occurs when a different size was detected for the same [`ino`][ino].
64+
///
65+
/// <!-- Should have been `std::os::unix::fs::MetadataExt::ino` but it would error on Windows -->
66+
/// [ino]: https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.ino
6467
#[derive(Debug, Display, Error)]
6568
#[display(bound(Size: Debug))]
6669
#[display("Size for inode {ino} changed from {recorded:?} to {detected:?}")]

src/hardlink/link_path_list.rs

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

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

2827
/// Add a path to the list.
29-
#[cfg_attr(not(unix), expect(unused))]
3028
pub(crate) fn add(&mut self, path: PathBuf) {
3129
self.0.push(path)
3230
}

src/hardlink/record.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ 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))]
1615
pub(crate) fn new(
1716
path: &'a Path,
1817
stats: &'a Metadata,

0 commit comments

Comments
 (0)