couple of clippy::perf fixes
This commit is contained in:
parent
0d13f6afeb
commit
bbd7ce6904
6 changed files with 6 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue