mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix clippy lint
This commit is contained in:
parent
ccd501d22e
commit
d446258be5
1 changed files with 1 additions and 6 deletions
|
@ -54,12 +54,7 @@ struct TokenData {
|
||||||
impl TokenProvider {
|
impl TokenProvider {
|
||||||
fn find_token(&self, scopes: Vec<&str>) -> Option<usize> {
|
fn find_token(&self, scopes: Vec<&str>) -> Option<usize> {
|
||||||
self.lock(|inner| {
|
self.lock(|inner| {
|
||||||
for i in 0..inner.tokens.len() {
|
(0..inner.tokens.len()).find(|&i| inner.tokens[i].in_scopes(scopes.clone()))
|
||||||
if inner.tokens[i].in_scopes(scopes.clone()) {
|
|
||||||
return Some(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
None
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue