mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
82be9dc606
question_mark: don't add `as_ref()` for a call expression If a call returns a `!Copy` value, it does so regardless of whether `as_ref()` is added. For example, `foo.into_option().as_ref()?` can be simplified to `foo.into_option()?`. --- changelog: Improved `question_mark` lint suggestion so that it doesn't add redundant `as_ref()` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |