mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1270] [MERGED] Fix clippy warnings #1311
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1311
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1270
Author: @yubiuser
Created: 3/31/2024
Status: ✅ Merged
Merged: 5/11/2024
Merged by: @roderickvd
Base:
dev← Head:fix/clippy📝 Commits (2)
2cd2346Fix map_clone and explicit truncate when file is create63e2490Fix redundant import checking on beta toolchain📊 Changes
22 files changed (+10 additions, -38 deletions)
View changed files
📝
connect/src/spirc.rs(+1 -2)📝
core/src/cdn_url.rs(+1 -4)📝
core/src/connection/handshake.rs(+1 -1)📝
core/src/connection/mod.rs(+1 -1)📝
core/src/date.rs(+1 -1)📝
core/src/session.rs(+1 -7)📝
core/src/spotify_id.rs(+1 -5)📝
metadata/src/album.rs(+0 -1)📝
metadata/src/artist.rs(+0 -1)📝
metadata/src/availability.rs(+0 -1)📝
metadata/src/episode.rs(+0 -1)📝
metadata/src/image.rs(+0 -1)📝
metadata/src/playlist/annotation.rs(+0 -1)📝
metadata/src/playlist/attribute.rs(+0 -1)📝
metadata/src/playlist/diff.rs(+1 -1)📝
metadata/src/playlist/item.rs(+0 -1)📝
metadata/src/playlist/list.rs(+0 -1)📝
metadata/src/playlist/operation.rs(+0 -1)📝
metadata/src/sale_period.rs(+0 -1)📝
metadata/src/show.rs(+1 -4)...and 2 more files
📄 Description
Fixes a clippy warning that occured in recent tests regarding
map_clone(https://rust-lang.github.io/rust-clippy/master/index.html#/map_clone) and file creation without explicite defining truncation behavior (https://rust-lang.github.io/rust-clippy/master/index.html#/suspicious_open_options)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.