Enforce lint reasons

This commit is contained in:
oxalica 2024-09-10 01:22:46 -04:00
parent 61850aa1ed
commit 3bb6d1456d
3 changed files with 4 additions and 6 deletions

View file

@ -8,6 +8,7 @@ members = [
default-members = ["blahd"] default-members = ["blahd"]
[workspace.lints.clippy] [workspace.lints.clippy]
allow_attributes = "warn"
dbg_macro = "warn" dbg_macro = "warn"
print_stderr = "warn" print_stderr = "warn"
print_stdout = "warn" print_stdout = "warn"

View file

@ -56,14 +56,13 @@ enum Command {
} }
#[derive(Debug, clap::Subcommand)] #[derive(Debug, clap::Subcommand)]
#[allow(clippy::large_enum_variant)]
enum DbCommand { enum DbCommand {
/// Create and initialize database. /// Create and initialize database.
Init, Init,
/// Set user property, possibly adding new users. /// Set user property, possibly adding new users.
SetUser { SetUser {
#[command(flatten)] #[command(flatten)]
user: User, user: Box<User>,
#[arg(long, value_parser = flag_parser::<ServerPermission>)] #[arg(long, value_parser = flag_parser::<ServerPermission>)]
permission: ServerPermission, permission: ServerPermission,

View file

@ -1,7 +1,5 @@
// FIXME: False positive? #![expect(clippy::unwrap_used, reason = "FIXME: random false positive")]
#![allow(clippy::unwrap_used)] #![expect(clippy::toplevel_ref_arg, reason = "easy to use for fixtures")]
// Easy to use for fixtures.
#![allow(clippy::toplevel_ref_arg)]
use std::fmt; use std::fmt;
use std::future::IntoFuture; use std::future::IntoFuture;
use std::sync::{Arc, LazyLock}; use std::sync::{Arc, LazyLock};