Skip to content

Commit

Permalink
Rollup merge of rust-lang#114268 - SUPERCILEX:empty, r=workingjubilee
Browse files Browse the repository at this point in the history
Fix empty_write since rust version attribute

Fixup of rust-lang#98154 for the rust version.

r? ``@workingjubilee``
  • Loading branch information
workingjubilee authored Jul 31, 2023
2 parents 126d809 + 0b4a80f commit 495e657
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 495e657

Please sign in to comment.