Closed ramsayleung closed 5 months ago
Rust 1.77 introduces a new cargo clippy lint rule for the suspicious use of OpenOptions::create() without an explicit OpenOptions::truncate(), which failed the cargo clipy CI task
OpenOptions::create()
OpenOptions::truncate()
cargo clipy
None
Please delete options that are not relevant.
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
It's unnecessary.
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 clipy
CI 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.