Skip to content

Commit

Permalink
Fix empty_write since rust version attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPERCILEX committed Jul 30, 2023
1 parent a17c796 commit 0b4a80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/io/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl SizeHint for Empty {
}
}

#[stable(feature = "empty_write", since = "1.64.0")]
#[stable(feature = "empty_write", since = "CURRENT_RUSTC_VERSION")]
impl Write for Empty {
#[inline]
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
Expand All @@ -124,7 +124,7 @@ impl Write for Empty {
}
}

#[stable(feature = "empty_write", since = "1.64.0")]
#[stable(feature = "empty_write", since = "CURRENT_RUSTC_VERSION")]
impl Write for &Empty {
#[inline]
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
Expand Down

0 comments on commit 0b4a80f

Please sign in to comment.