mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
10 lines
361 B
Text
10 lines
361 B
Text
if_chain! {
|
|
if let ExprKind::Repeat(value, length) = expr.kind;
|
|
if let ExprKind::Lit(ref lit) = value.kind;
|
|
if let LitKind::Int(1, LitIntType::Unsigned(UintTy::U8)) = lit.node;
|
|
if let ExprKind::Lit(ref lit1) = length.value.kind;
|
|
if let LitKind::Int(5, LitIntType::Unsuffixed) = lit1.node;
|
|
then {
|
|
// report your lint here
|
|
}
|
|
}
|