rust/clippy_lints
Philipp Krones 35e55a63f2
manual_unwrap_or(_default): don't lint if not safe to move scrutinee (#15817)
When matched against `Result` with copyable `Ok` variant, uncopyable
scrutinee won't actually be moved. But
`manual_unwrap_or`/`manual_unwrap_or_default` will force it to move,
which can cause problem if scrutinee is used later.

Fixes rust-lang/rust-clippy#15807

changelog: [`manual_unwrap_or`]: don't lint if not safe to move
scrutinee
changelog: [`manual_unwrap_or_default`]: don't lint if not safe to move
scrutinee
2025-10-29 16:10:45 +00:00
..
src manual_unwrap_or(_default): don't lint if not safe to move scrutinee (#15817) 2025-10-29 16:10:45 +00:00
Cargo.toml Merge commit '2dc84cb744' into clippy-subtree-update 2025-10-06 18:10:37 +02:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

This crate contains Clippy lints. For the main crate, check GitHub.