Skip to content

Commit

Permalink
Touch up PR 1405
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 22, 2024
1 parent 0fc0797 commit 89a0417
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unique_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use core::mem::{self, MaybeUninit};
use core::ops::{Deref, DerefMut};
use core::pin::Pin;
#[cfg(feature = "std")]
use std::io::{self, Read, Write};
use std::io::{self, IoSlice, Read, Write};

/// Binding to C++ `std::unique_ptr<T, std::default_delete<T>>`.
#[repr(C)]
Expand Down Expand Up @@ -235,7 +235,7 @@ where
}

#[inline]
fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result<usize> {
fn write_vectored(&mut self, bufs: &[IoSlice]) -> io::Result<usize> {
self.pin_mut().write_vectored(bufs)
}

Expand All @@ -250,7 +250,7 @@ where
}

#[inline]
fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
fn write_fmt(&mut self, fmt: fmt::Arguments) -> io::Result<()> {
self.pin_mut().write_fmt(fmt)
}

Expand Down

0 comments on commit 89a0417

Please sign in to comment.