From 92663f34ba8d1ad07220d994e5e0daec4743ea9f Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Fri, 10 Jan 2025 09:09:08 +0100 Subject: [PATCH] Fix needless-as-bytes --- hdf5-types/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdf5-types/src/string.rs b/hdf5-types/src/string.rs index 3f17ae46..3f4f91a3 100644 --- a/hdf5-types/src/string.rs +++ b/hdf5-types/src/string.rs @@ -547,7 +547,7 @@ impl FromStr for FixedUnicode { type Err = StringError; fn from_str(s: &str) -> Result::Err> { - // #[allow(clippy::needless_as_bytes)] // strlen vs. number of bytes + #[allow(clippy::needless_as_bytes)] // strlen vs. number of bytes if s.as_bytes().len() <= N { unsafe { Ok(Self::from_bytes(s.as_bytes())) } } else {