mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
Use #[expect], lint reasons
This commit is contained in:
parent
e14b7f28f2
commit
b09c44a0ca
49 changed files with 157 additions and 161 deletions
21
src/error.rs
21
src/error.rs
|
|
@ -35,9 +35,6 @@ impl fmt::Display for DisplayWithSources<'_> {
|
|||
}
|
||||
|
||||
/// Top-level errors
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum Main {
|
||||
#[error(transparent)]
|
||||
|
|
@ -45,9 +42,6 @@ pub(crate) enum Main {
|
|||
}
|
||||
|
||||
/// Errors returned from the `serve` CLI subcommand.
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum ServeCommand {
|
||||
#[error("failed to load configuration")]
|
||||
|
|
@ -70,9 +64,6 @@ pub(crate) enum ServeCommand {
|
|||
}
|
||||
|
||||
/// Error generated if `server_name` has changed or if checking this failed
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum ServerNameChanged {
|
||||
#[error("failed to check if there are any users")]
|
||||
|
|
@ -86,9 +77,6 @@ pub(crate) enum ServerNameChanged {
|
|||
}
|
||||
|
||||
/// Observability initialization errors
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum Observability {
|
||||
// Upstream's documentation on what this error means is very sparse
|
||||
|
|
@ -104,9 +92,6 @@ pub(crate) enum Observability {
|
|||
}
|
||||
|
||||
/// Configuration errors
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum Config {
|
||||
#[error("failed to find configuration file")]
|
||||
|
|
@ -123,9 +108,6 @@ pub(crate) enum Config {
|
|||
}
|
||||
|
||||
/// Errors that can occur while searching for a config file
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum ConfigSearch {
|
||||
#[error("XDG Base Directory error")]
|
||||
|
|
@ -136,9 +118,6 @@ pub(crate) enum ConfigSearch {
|
|||
}
|
||||
|
||||
/// Errors serving traffic
|
||||
// Missing docs are allowed here since that kind of information should be
|
||||
// encoded in the error messages themselves anyway.
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum Serve {
|
||||
#[error("no listeners were specified in the configuration file")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue