From a9580b6d63aec1e030206dddefb930e7f3dd1502 Mon Sep 17 00:00:00 2001 From: TheVeryDarkness <3266343194@qq.com> Date: Sat, 31 Aug 2024 00:23:23 +0800 Subject: [PATCH] Use `Write::write_all` instead of `Write::write` Make clippy happy. --- tests/ill_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ill_data.rs b/tests/ill_data.rs index a840da3..d8d725e 100644 --- a/tests/ill_data.rs +++ b/tests/ill_data.rs @@ -5,7 +5,7 @@ struct IllData(&'static [u8]); impl WriteInto for IllData { fn try_write_into(&self, s: &mut S) -> Result<()> { - s.write(self.0)?; + s.write_all(self.0)?; Ok(()) } }