clippy::unseparated_literal_suffix

This commit is contained in:
gwenn
2022-01-05 20:03:30 +01:00
committed by Thom Chiovoloni
parent c10e2f39ef
commit e1fd731cb0
7 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ pub(crate) struct SmallCString(smallvec::SmallVec<[u8; 16]>);
impl SmallCString {
#[inline]
pub fn new(s: &str) -> Result<Self, NulError> {
if s.as_bytes().contains(&0u8) {
if s.as_bytes().contains(&0_u8) {
return Err(Self::fabricate_nul_error(s));
}
let mut buf = SmallVec::with_capacity(s.len() + 1);