1
Fork 0

couple of clippy::perf fixes

This commit is contained in:
Matthias Krüger 2022-11-18 10:30:47 +01:00
parent 83356b78c4
commit e3036df003
11 changed files with 14 additions and 16 deletions

View file

@ -1436,7 +1436,7 @@ fn pretty_printing_compatibility_hack(item: &Item, sess: &ParseSess) -> bool {
let crate_matches = if c.starts_with("allsorts-rental") {
true
} else {
let mut version = c.trim_start_matches("rental-").split(".");
let mut version = c.trim_start_matches("rental-").split('.');
version.next() == Some("0")
&& version.next() == Some("5")
&& version