Skip to content

Fix clippy::question_mark on Rust 1.97#899

Merged
yara-blue merged 1 commit into
RustAudio:masterfrom
SkeletonGamer:clippy-question-mark-1-97
Jul 10, 2026
Merged

Fix clippy::question_mark on Rust 1.97#899
yara-blue merged 1 commit into
RustAudio:masterfrom
SkeletonGamer:clippy-question-mark-1-97

Conversation

@SkeletonGamer

Copy link
Copy Markdown
Contributor

Rust 1.97, released on July 9, extends clippy::question_mark to if let ... else { return None }
blocks. CI runs clippy from stable with -D warnings, so the check now fails on master:

error: this block may be rewritten with the `?` operator
  --> src/source/from_iter.rs:56:13

Reproduced with the CI command on rust:1.97, cargo clippy --all-features -- -D warnings: it fails
on master and passes with this change, with no other lint behind it. cargo fmt --all --check is
clean. ? on an Option inside a function returning Option is well below the 1.89 MSRV.

`clippy::question_mark` started flagging this in Rust 1.97, and CI runs clippy
from stable with `-D warnings`, so the check now fails on master.
@yara-blue yara-blue merged commit a359d2a into RustAudio:master Jul 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants