From 4949b3cbdea46490f5b0a2732b627f90c40dad0c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Dubois Date: Sat, 16 Dec 2023 19:56:28 +0100 Subject: [PATCH] Fix clippy reported warnings. Signed-off-by: Jean-Christophe Dubois --- heatshrink-lib/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heatshrink-lib/src/lib.rs b/heatshrink-lib/src/lib.rs index 4c86809..2dd565b 100644 --- a/heatshrink-lib/src/lib.rs +++ b/heatshrink-lib/src/lib.rs @@ -73,8 +73,8 @@ impl<'a> OutputInfo<'a> { /// Create a new OutputInfo instance from provided parameters fn new(output_buffer: &'a mut [u8]) -> Self { OutputInfo { - output_buffer : output_buffer, - output_size : 0 as usize, + output_buffer, + output_size : 0_usize, } }