Skip to content

Commit

Permalink
clippyyyyyy
Browse files Browse the repository at this point in the history
  • Loading branch information
xou816 committed Nov 29, 2024
1 parent 2619fc3 commit 93c665f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/cached_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ enum SpotCacheKey<'a> {
UserPlaylists(&'a str, usize, usize),
}

impl<'a> SpotCacheKey<'a> {
impl SpotCacheKey<'_> {
fn into_raw(self) -> String {
match self {
Self::SavedAlbums(offset, limit) => format!("me_albums_{offset}_{limit}.json"),
Expand Down
2 changes: 1 addition & 1 deletion src/app/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::io::{Error, ErrorKind, Write};
// A wrapper to be able to implement the Write trait on a PixbufLoader
struct LocalPixbufLoader<'a>(&'a PixbufLoader);

impl<'a> Write for LocalPixbufLoader<'a> {
impl Write for LocalPixbufLoader<'_> {
fn write(&mut self, buf: &[u8]) -> Result<usize, Error> {
self.0
.write(buf)
Expand Down
2 changes: 1 addition & 1 deletion src/app/models/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl SongBatch {
// We have to split the batch in multiple batches
} else {
let n = songs.len();
let iter_count = (n + batch_size - 1) / batch_size;
let iter_count = n.div_ceil(batch_size);
(0..iter_count)
.map(|i| {
let offset = batch.offset + i * batch_size;
Expand Down

0 comments on commit 93c665f

Please sign in to comment.