We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f150e commit fe2fe18Copy full SHA for fe2fe18
Cargo.toml
@@ -2,6 +2,7 @@
2
name = "rust_bench_sets_compared"
3
version = "0.1.0"
4
authors = ["Stein Somers <[email protected]>"]
5
+edition = "2018"
6
7
[dev-dependencies]
8
proptest = "0.9"
src/main.rs
@@ -41,7 +41,7 @@ fn hash_retain(s: &mut HashSet<i32>) -> Option<i32> {
41
let mut snatched: Option<i32> = None;
42
s.retain(|elt| match snatched {
43
None => {
44
- snatched = Some(elt.clone());
+ snatched = Some(*elt);
45
false
46
}
47
Some(_) => true,
0 commit comments