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