Skip to content

Commit 95c02d8

Browse files
committed
gio: fix clippy lints for rust 1.64
1 parent 359e80d commit 95c02d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gio/src/output_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl<T: IsA<OutputStream>> io::Write for OutputStreamWrite<T> {
675675
fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result<usize> {
676676
let vectors = bufs
677677
.iter()
678-
.map(|v| OutputVector::new(&**v))
678+
.map(|v| OutputVector::new(v))
679679
.collect::<smallvec::SmallVec<[_; 2]>>();
680680
let result = self
681681
.0

gio/src/pollable_output_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T> {
242242
let stream = Pin::get_ref(self.as_ref());
243243
let vectors = bufs
244244
.iter()
245-
.map(|v| OutputVector::new(&**v))
245+
.map(|v| OutputVector::new(v))
246246
.collect::<smallvec::SmallVec<[_; 2]>>();
247247
let gio_result = stream
248248
.0

0 commit comments

Comments
 (0)