Skip to content

Commit

Permalink
Whitelist until lint is in stable
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Nov 29, 2024
1 parent f244687 commit 2046376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdf5-types/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ impl<const N: usize> FromStr for FixedUnicode<N> {
type Err = StringError;

fn from_str(s: &str) -> Result<Self, <Self as FromStr>::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 {
Expand Down

0 comments on commit 2046376

Please sign in to comment.