chore: Fix new rustfmt errors
This commit is contained in:
parent
d6c4533b7d
commit
2b986e1226
@ -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`.
|
||||
|
@ -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 } =
|
||||
|
Loading…
x
Reference in New Issue
Block a user