From 6723829a3398b3c9dd6dc6ae79124f46000606ee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 00:50:54 +0200 Subject: chore(treewide): Remove `cargo` warnings to 0 There are still the `clippy` warnings, but they are for a future date. --- crates/turtle/src/main.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'crates/turtle/src/main.rs') diff --git a/crates/turtle/src/main.rs b/crates/turtle/src/main.rs index 664cf3a6..7ea08a9b 100644 --- a/crates/turtle/src/main.rs +++ b/crates/turtle/src/main.rs @@ -1,8 +1,15 @@ -#![warn(clippy::pedantic, clippy::nursery)] -#![allow(clippy::use_self, clippy::missing_const_for_fn)] // not 100% reliable -// #![deny(unsafe_code)] #![forbid(unsafe_code)] -#![expect(clippy::redundant_pub_crate)] +#![warn(clippy::pedantic, clippy::nursery)] +#![expect( + clippy::missing_const_for_fn, // not 100% reliable + clippy::redundant_pub_crate, +)] +#![expect( + clippy::cast_possible_wrap, + clippy::cast_sign_loss, + clippy::cast_possible_truncation, + reason = "We should remove all of these. But it's just a lot of work in this code-base" +)] use clap::Parser; use clap::builder::Styles; -- cgit v1.3.1