From 4a904d9fe5822fa9dbd12c572a362788a0ee98f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bernier?= Date: Wed, 6 Nov 2024 23:34:25 -0500 Subject: [PATCH] Clippy fixes (#12) --- src/lib.rs | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a165be6..763328e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -698,10 +698,10 @@ pub fn encode_buf>(num: T, buf: &mut String) { /// /// # Safety /// - To encode all possible values of u128, the buffer must be at least 22 bytes long. However -/// a smaller buffer may be used if the value to be encoded is known to be smaller. -/// Base62 encoding adds 37.5% overhead to the size of the input. +/// a smaller buffer may be used if the value to be encoded is known to be smaller. +/// Base62 encoding adds 37.5% overhead to the size of the input. /// - The remaining end of the buffer is left untouched. It's up to the caller to zero it using -/// the returned len if they want to. +/// the returned len if they want to. /// /// # Example /// @@ -734,10 +734,10 @@ pub fn encode_bytes>(num: T, buf: &mut [u8]) -> Result