mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Fix newly reported clippy errors
- Use variables directly in format strings. As reported by clippy, variables can be used directly in the `format!` string. - Use rewind() instead of seeking to 0. - Remove superfluous & and ref. Signed-off-by: Petr Tesarik <petr@tesarici.cz>
This commit is contained in:
parent
e9dbdfed25
commit
c600297f52
19 changed files with 69 additions and 90 deletions
|
@ -263,7 +263,7 @@ impl MercuryManager {
|
|||
let mut found = false;
|
||||
|
||||
self.lock(|inner| {
|
||||
inner.subscriptions.retain(|&(ref prefix, ref sub)| {
|
||||
inner.subscriptions.retain(|(prefix, sub)| {
|
||||
if encoded_uri.starts_with(prefix) {
|
||||
found = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue