Fix clippy: Remove unnecessary reference
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
edad6082a1
commit
524c246972
|
@ -38,7 +38,7 @@ impl FromStr for Scopes {
|
||||||
fn from_str(s: &str) -> Result<Scopes, Self::Err> {
|
fn from_str(s: &str) -> Result<Scopes, Self::Err> {
|
||||||
let mut set = HashSet::new();
|
let mut set = HashSet::new();
|
||||||
for scope in s.split_whitespace() {
|
for scope in s.split_whitespace() {
|
||||||
let scope = Scope::from_str(&scope)?;
|
let scope = Scope::from_str(scope)?;
|
||||||
set.insert(scope);
|
set.insert(scope);
|
||||||
}
|
}
|
||||||
Ok(Scopes {
|
Ok(Scopes {
|
||||||
|
|
Loading…
Reference in New Issue