From: Ian Jackson Date: Mon, 3 Aug 2020 10:32:24 +0000 (+0100) Subject: clippy X-Git-Tag: otter-0.2.0~1186 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2425ea2e5d1a96e430a40a8de2903f3f45fa0643;p=otter.git clippy The message is wrong filed https://github.com/rust-lang/rust-clippy/issues/5862 but this seems weird style so change it --- 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\