Skip to content

Commit

Permalink
Fixed Rust 1.73 clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danwilliams committed Oct 28, 2023
1 parent bec64f0 commit d87aa76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ pub fn process_callouts(blockquotes: &Selection) {
para_html = strong.html().to_string();
strong.remove();
}
let open = !vec!["image", "images", "screenshot", "screenshots"].contains(&&*class);
let open = !["image", "images", "screenshot", "screenshots"].contains(&&*class);
let mut chld_html = blockquote.children().iter()
.map(|c| c.html().to_string())
.collect::<Vec<String>>()
Expand Down
2 changes: 1 addition & 1 deletion src/utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ pub fn extract_uri_query_parts(uri: Uri) -> HashMap<String, String> {
.into_owned()
.collect()
})
.unwrap_or_else(HashMap::new)
.unwrap_or_default()
}

// build_uri
Expand Down

0 comments on commit d87aa76

Please sign in to comment.