From 2425ea2e5d1a96e430a40a8de2903f3f45fa0643 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 3 Aug 2020 11:32:24 +0100 Subject: [PATCH] clippy The message is wrong filed https://github.com/rust-lang/rust-clippy/issues/5862 but this seems weird style so change it --- src/sse.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sse.rs b/src/sse.rs index ce57ecac..15c2b4ec 100644 --- a/src/sse.rs +++ b/src/sse.rs @@ -38,8 +38,7 @@ impl Read for UpdateReader { let mut ig = self.gref.lock().map_err(|_| em("poison"))?; let orig_wanted = orig_buf.len(); - #[allow(clippy::useless_asref)] // todo: report this - let mut buf = orig_buf.as_mut(); + let mut buf = &mut *orig_buf; if self.init_confirmation_send.next().is_some() { write!(buf, "event: commsworking\n\ -- 2.30.2