Skip to content

Commit b855262

Browse files
committed
Auto merge of #1887 - integer32llc:fix-new-clippy-lint, r=carols10cents
Fix new clippy lint about unnecessary parens This just started failing builds since the new beta was cut. I'm going to merge this once CI passes.
2 parents adf28ad + e8300dd commit b855262

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/bin/render-readmes.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ fn main() {
7979
query = query.filter(crates::name.eq(crate_name));
8080
}
8181

82-
let version_ids = query
83-
.load::<(i32)>(&conn)
84-
.expect("error loading version ids");
82+
let version_ids = query.load::<i32>(&conn).expect("error loading version ids");
8583

8684
let total_versions = version_ids.len();
8785
println!("Rendering {} versions", total_versions);

src/render.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ mod tests {
272272

273273
#[test]
274274
fn text_with_inline_javascript() {
275-
let text =
276-
r#"foo_readme\n\n<a href="https://crates.io/crates/cargo-registry" onclick="window.alert('Got you')">Crate page</a>"#;
275+
let text = r#"foo_readme\n\n<a href="https://crates.io/crates/cargo-registry" onclick="window.alert('Got you')">Crate page</a>"#;
277276
let result = markdown_to_html(text, None);
278277
assert_eq!(
279278
result,

0 commit comments

Comments
 (0)