Skip to content

Commit 8b0d4e3

Browse files
committed
Latest ammonia; clippy fixes
1 parent 60066dc commit 8b0d4e3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ serde = "1.0.0"
5656
clippy = { version = "=0.0.162", optional = true }
5757
chrono = { version = "0.4.0", features = ["serde"] }
5858
comrak = { version = "0.2.3", default-features = false }
59-
ammonia = "1.0.0-rc2"
59+
ammonia = { git = "https://github.com/notriddle/ammonia", rev = "3d4e4073f8cdb7c60203b9036c09f4385a2fdbbd" }
6060
docopt = "0.8.1"
6161
itertools = "0.6.0"
6262
lettre = "0.6"

src/render.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ impl<'a> MarkdownRenderer<'a> {
114114
return Some(Cow::Borrowed(url));
115115
}
116116

117-
return None;
117+
None
118118
});
119119

120120
let relative_url_sanitizer = constrain_closure(move |url| {
121-
if url.starts_with("#") {
121+
if url.starts_with('#') {
122122
return Some(Cow::Borrowed(url));
123123
}
124124

@@ -348,7 +348,7 @@ mod tests {
348348

349349
assert_eq!(
350350
result,
351-
"<p><a href=\"https://crates.io/crates/clap\" rel=\"nofollow noopener noreferrer\"><img src=\"https://img.shields.io/crates/v/clap.svg\"></a></p>\n"
351+
"<p><a href=\"https://crates.io/crates/clap\" rel=\"nofollow noopener noreferrer\"><img src=\"https://img.shields.io/crates/v/clap.svg\" alt=\"Crates.io\"></a></p>\n"
352352
);
353353
}
354354

0 commit comments

Comments
 (0)