Fix empty_write since rust version attribute

This commit is contained in:
Alex Saveau 2023-07-30 22:03:36 +01:00
parent a17c7968b7
commit 0b4a80f417
No known key found for this signature in database
GPG Key ID: 3F8D5B16EB169D48
1 changed files with 2 additions and 2 deletions

View File

@ -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> {