chore: Fix new rustfmt errors

This commit is contained in:
Kévin Commaille 2024-05-12 15:45:40 +02:00 committed by Kévin Commaille
parent d6c4533b7d
commit 2b986e1226
2 changed files with 2 additions and 3 deletions

View File

@ -22,8 +22,7 @@ pub fn system_time_to_http_date(
date_header::format(duration.as_secs(), &mut buffer)
.map_err(|_| HeaderSerializationError::InvalidHttpDate)?;
Ok(HeaderValue::from_bytes(&buffer)
.expect("date_header should produce a valid header value"))
Ok(HeaderValue::from_bytes(&buffer).expect("date_header should produce a valid header value"))
}
/// Convert a header value representing a HTTP date to a `SystemTime`.

View File

@ -152,7 +152,7 @@ pub mod v3 {
_,
serde::de::value::Error,
>::new(
path_args.iter().map(::std::convert::AsRef::as_ref),
path_args.iter().map(::std::convert::AsRef::as_ref)
))?;
let IncomingRequestQuery { before, after } =