Skip to content

Commit 3626477

Browse files
committed
wc: remove unnecessary cfg
1 parent 8ffb33f commit 3626477

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/uu/wc/src/countable.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub trait WordCountable: AsFd + AsRawFd + Read {
2424
pub trait WordCountable: Read {
2525
type Buffered: BufRead;
2626
fn buffered(self) -> Self::Buffered;
27-
#[cfg(not(target_os = "wasi"))]
2827
fn inner_file(&mut self) -> Option<&mut File>;
2928
}
3029

@@ -41,8 +40,6 @@ impl WordCountable for StdinLock<'_> {
4140
fn buffered(self) -> Self::Buffered {
4241
self
4342
}
44-
45-
#[cfg(not(target_os = "wasi"))]
4643
fn inner_file(&mut self) -> Option<&mut File> {
4744
None
4845
}
@@ -65,7 +62,6 @@ impl WordCountable for File {
6562
BufReader::new(self)
6663
}
6764

68-
#[cfg(not(target_os = "wasi"))]
6965
fn inner_file(&mut self) -> Option<&mut File> {
7066
Some(self)
7167
}

0 commit comments

Comments
 (0)