Skip to content

Commit 04223fb

Browse files
committed
fix: windows
1 parent 3752a42 commit 04223fb

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/hardlink/hardlink_list.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ pub use Summary as SharedLinkSummary;
1212
use crate::{hardlink::LinkPathList, inode::InodeNumber, size};
1313
use dashmap::DashMap;
1414
use derive_more::{Display, Error};
15+
use pipe_trait::Pipe;
1516
use smart_default::SmartDefault;
1617
use std::{fmt::Debug, path::Path};
1718

18-
#[cfg_attr(not(unix), cfg(expect(unused)))]
19-
use pipe_trait::Pipe;
20-
2119
/// Map value in [`HardlinkList`].
2220
#[derive(Debug, Clone)]
2321
struct Value<Size> {
@@ -105,7 +103,6 @@ where
105103
Size: size::Size,
106104
{
107105
/// Add an entry to the record.
108-
#[cfg_attr(not(unix), cfg(test))] // this function isn't used on non-POSIX except in tests
109106
pub(crate) fn add(
110107
&self,
111108
ino: InodeNumber,

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![deny(warnings)]
2+
#![cfg_attr(not(unix), allow(unused))]
23

34
#[cfg(feature = "json")]
45
pub use serde;

0 commit comments

Comments
 (0)