We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af2a847 commit 3cad623Copy full SHA for 3cad623
clippy_lints/src/casts/cast_lossless.rs
@@ -25,14 +25,7 @@ pub(super) fn check(
25
// The suggestion is to use a function call, so if the original expression
26
// has parens on the outside, they are no longer needed.
27
let mut applicability = Applicability::MachineApplicable;
28
- let opt = snippet_opt(
29
- cx,
30
- if cast_op.span.from_expansion() {
31
- cast_op.span.source_callsite()
32
- } else {
33
- cast_op.span
34
- },
35
- );
+ let opt = snippet_opt(cx, cast_op.span.source_callsite());
36
let sugg = opt.as_ref().map_or_else(
37
|| {
38
applicability = Applicability::HasPlaceholders;
0 commit comments