Rollup merge of #114268 - SUPERCILEX:empty, r=workingjubilee
Fix empty_write since rust version attribute Fixup of https://github.com/rust-lang/rust/pull/98154 for the rust version. r? ``@workingjubilee``
This commit is contained in:
commit
495e6577c8
@ -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> {
|
||||
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user