1
0
Fork 0
mirror of https://github.com/Blah-IM/blahrs.git synced 2025-05-22 18:11:10 +00:00

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
Cargo.toml
blahctl/src
blahd/tests

View file

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

View file

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

View file

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