Use #[expect(lint)] where possible

This commit is contained in:
gwenn
2024-09-05 20:51:58 +02:00
parent 5464f4f386
commit a00acd23a6
23 changed files with 44 additions and 59 deletions

View File

@@ -687,7 +687,7 @@ impl Statement<'_> {
#[cfg(not(feature = "extra_check"))]
#[inline]
#[allow(clippy::unnecessary_wraps)]
#[expect(clippy::unnecessary_wraps)]
fn check_update(&self) -> Result<()> {
Ok(())
}
@@ -741,7 +741,7 @@ impl Statement<'_> {
#[cfg(not(feature = "extra_check"))]
#[inline]
#[allow(clippy::unnecessary_wraps)]
#[expect(clippy::unnecessary_wraps)]
pub(crate) fn check_no_tail(&self) -> Result<()> {
Ok(())
}
@@ -778,7 +778,7 @@ impl fmt::Debug for Statement<'_> {
}
impl Drop for Statement<'_> {
#[allow(unused_must_use)]
#[expect(unused_must_use)]
#[inline]
fn drop(&mut self) {
self.finalize_();
@@ -1020,7 +1020,7 @@ mod test {
assert_eq!(1, doubled_id);
// second row should be an `Err`
#[allow(clippy::match_wild_err_arm)]
#[expect(clippy::match_wild_err_arm)]
match rows.next().unwrap() {
Ok(_) => panic!("invalid Ok"),
Err(Error::SqliteSingleThreadedMode) => (),