1
Fork 0

don't explicitly compare against true or false

This commit is contained in:
Matthias Krüger 2020-02-24 16:52:40 +01:00
parent d9a328a0ad
commit addd7426be
10 changed files with 15 additions and 15 deletions

View file

@ -4049,7 +4049,7 @@ fn get_next_url(used_links: &mut FxHashSet<String>, url: String) -> String {
return url;
}
let mut add = 1;
while used_links.insert(format!("{}-{}", url, add)) == false {
while !used_links.insert(format!("{}-{}", url, add)) {
add += 1;
}
format!("{}-{}", url, add)