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:
parent
61850aa1ed
commit
3bb6d1456d
3 changed files with 4 additions and 6 deletions
|
@ -8,6 +8,7 @@ members = [
|
|||
default-members = ["blahd"]
|
||||
|
||||
[workspace.lints.clippy]
|
||||
allow_attributes = "warn"
|
||||
dbg_macro = "warn"
|
||||
print_stderr = "warn"
|
||||
print_stdout = "warn"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Add table
Reference in a new issue