2021-10-28 21:39:41 -04:00
|
|
|
if_chain! {
|
2021-11-10 15:59:49 -06:00
|
|
|
if let ExprKind::Repeat(value, length) = expr.kind;
|
2021-10-28 21:39:41 -04:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|