From 4a13373c4ba7ee07bd35018b4a5e60e211c2fa1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 11 Oct 2022 09:26:32 +0200 Subject: [PATCH] clippy fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and one additional API fn "allow many parameters" addition. Signed-off-by: Fabian Grünbichler --- pbs-api-types/src/human_byte.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-api-types/src/human_byte.rs b/pbs-api-types/src/human_byte.rs index 37a74f77..f9ac6d53 100644 --- a/pbs-api-types/src/human_byte.rs +++ b/pbs-api-types/src/human_byte.rs @@ -246,7 +246,7 @@ fn test_human_byte_parser() -> Result<(), Error> { } let new = h.to_string(); - if &new != as_str { + if new != *as_str { bail!("to_string failed for '{}' ({:?} != {:?})", v, new, as_str); } Ok(())