mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-23 02:21: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"]
|
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"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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};
|
||||||
|
|
Loading…
Add table
Reference in a new issue