mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 16:05:53 +03:00
[PR #468] [MERGED] [fix] the suspicious use of OpenOptions::create() without an explicit OpenOptions::truncate(). #475
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#475
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/ramsayleung/rspotify/pull/468
Author: @ramsayleung
Created: 3/24/2024
Status: ✅ Merged
Merged: 3/24/2024
Merged by: @ramsayleung
Base:
master← Head:ramsay/fix-suspicious_open_options📝 Commits (2)
6b4e70a[fix]Fix the suspicious use of OpenOptions::create() without an explicit OpenOptions::truncate().cb1965ccargo fmtthe codebase to respect the code taste.📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
rspotify-model/src/auth.rs(+5 -1)📄 Description
Description
Rust 1.77 introduces a new cargo clippy lint rule for the suspicious use of
OpenOptions::create()without an explicitOpenOptions::truncate(), which failed thecargo clipyCI taskMotivation and Context
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
cargo clippy -p rspotify -p rspotify-http -p rspotify-model -p rspotify-macros --no-default-features --features=rspotify/cli,rspotify/env-file,rspotify/client-ureq,rspotify/ureq-rustls-tls,rspotify-http/client-ureq,rspotify-http/ureq-rustls-tls --all-targets -- -D warnings: passedIs this change properly documented?
It's unnecessary.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.