about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
commitbbd7ce690452f28d459643d97fbae89109cf5808 (patch)
treef5724f95a121a164d45952c104300ea96d2f3cd3 /src
parent0d13f6afeba4935499abe0c9a07426c94492c94e (diff)
downloadrust-bbd7ce690452f28d459643d97fbae89109cf5808.tar.gz
rust-bbd7ce690452f28d459643d97fbae89109cf5808.zip
couple of clippy::perf fixes
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/passes/html_tags.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/passes/html_tags.rs b/src/librustdoc/passes/html_tags.rs
index 00e10c6d5a7..a620ffa9878 100644
--- a/src/librustdoc/passes/html_tags.rs
+++ b/src/librustdoc/passes/html_tags.rs
@@ -215,7 +215,7 @@ impl<'a, 'tcx> DocVisitor for InvalidHtmlTagsLinter<'a, 'tcx> {
                     // We don't try to detect stuff `<like, this>` because that's not valid HTML,
                     // and we don't try to detect stuff `<like this>` because that's not valid Rust.
                     if let Some(Some(generics_start)) = (is_open_tag
-                        && dox[..range.end].ends_with(">"))
+                        && dox[..range.end].ends_with('>'))
                     .then(|| extract_path_backwards(&dox, range.start))
                     {
                         let generics_sp = match super::source_span_for_markdown_range(