imperio , ![]()
Added a new rust clippy lint which detects
.get().is_some()
on std map types:let s: HashSet<String> = HashSet::new();<br></br>if s.get("a").is_some() {<br></br>
Should be written:
if s.contains("a") {<br></br>
imperio , ![]()
Added a new rust clippy lint which detects
.get().is_some()
on std map types:let s: HashSet<String> = HashSet::new();<br></br>if s.get("a").is_some() {<br></br>
Should be written:
if s.contains("a") {<br></br>