refactor(multiple): Clippy run
This commit is contained in:
@@ -12,7 +12,7 @@ use header::shared::Charset;
|
||||
pub fn from_one_raw_str<T: str::FromStr>(raw: &[Vec<u8>]) -> ::Result<T> {
|
||||
if raw.len() != 1 || unsafe { raw.get_unchecked(0) } == b"" { return Err(::Error::Header) }
|
||||
// we JUST checked that raw.len() == 1, so raw[0] WILL exist.
|
||||
from_raw_str(& unsafe { raw.get_unchecked(0) })
|
||||
from_raw_str( unsafe { raw.get_unchecked(0) })
|
||||
}
|
||||
|
||||
/// Reads a raw string into a value.
|
||||
|
||||
Reference in New Issue
Block a user