Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jac32 committed Aug 19, 2021
1 parent 720b5a5 commit dc19c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/canonicalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl<T: RequestLike> CanonicalizeExt for T {
let (headers, missing_headers): (Vec<_>, Vec<_>) = config
.headers
.as_deref()
.unwrap_or_else(|| DEFAULT_HEADERS)
.unwrap_or(DEFAULT_HEADERS)
.iter()
.cloned()
.partition_map(|header| {
Expand Down
2 changes: 1 addition & 1 deletion src/mock_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl MockRequest {

if let Some(body) = &self.body {
writeln!(writer)?;
writer.write_all(&body)?;
writer.write_all(body)?;
}

Ok(())
Expand Down

0 comments on commit dc19c32

Please sign in to comment.