/// if x >= y + 1 {}
/// ```
///
- /// Could be written as:
- ///
+ /// Use instead:
/// ```rust
/// # let x = 1;
/// # let y = 1;
}
impl IntPlusOne {
- #[allow(clippy::cast_sign_loss)]
+ #[expect(clippy::cast_sign_loss)]
fn check_lit(lit: &Lit, target_value: i128) -> bool {
if let LitKind::Int(value, ..) = lit.kind {
return value == (target_value as u128);