Skip to content

Commit 612b5b2

Browse files
authored
chore: fix clippy lints (#226)
## Motivation My other PR (#225) is failing CI because of clippy warnings. ## Solution `cargo clippy --all-targets --all-features --fix`
1 parent c4fe96a commit 612b5b2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/layer.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,10 +1999,7 @@ mod tests {
19991999
});
20002000

20012001
let attributes = tracer.attributes();
2002-
let keys = attributes
2003-
.iter()
2004-
.map(|(k, _)| k.as_str())
2005-
.collect::<Vec<&str>>();
2002+
let keys = attributes.keys().map(|k| k.as_str()).collect::<Vec<&str>>();
20062003
assert!(keys.contains(&"target"));
20072004
}
20082005

@@ -2017,10 +2014,7 @@ mod tests {
20172014
});
20182015

20192016
let attributes = tracer.attributes();
2020-
let keys = attributes
2021-
.iter()
2022-
.map(|(k, _)| k.as_str())
2023-
.collect::<Vec<&str>>();
2017+
let keys = attributes.keys().map(|k| k.as_str()).collect::<Vec<&str>>();
20242018
assert!(!keys.contains(&"target"));
20252019
}
20262020

0 commit comments

Comments
 (0)