mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
config: fix order of items
This commit is contained in:
parent
9c44aa877c
commit
b171f7c123
1 changed files with 14 additions and 14 deletions
|
|
@ -114,20 +114,6 @@ pub(crate) enum ListenConfig {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Default, Debug, Deserialize)]
|
|
||||||
#[serde(rename_all = "snake_case")]
|
|
||||||
pub(crate) enum LogFormat {
|
|
||||||
/// Use the [`tracing_subscriber::fmt::format::Pretty`] formatter
|
|
||||||
Pretty,
|
|
||||||
/// Use the [`tracing_subscriber::fmt::format::Full`] formatter
|
|
||||||
#[default]
|
|
||||||
Full,
|
|
||||||
/// Use the [`tracing_subscriber::fmt::format::Compact`] formatter
|
|
||||||
Compact,
|
|
||||||
/// Use the [`tracing_subscriber::fmt::format::Json`] formatter
|
|
||||||
Json,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Display for ListenConfig {
|
impl Display for ListenConfig {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
|
|
@ -145,6 +131,20 @@ impl Display for ListenConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Default, Debug, Deserialize)]
|
||||||
|
#[serde(rename_all = "snake_case")]
|
||||||
|
pub(crate) enum LogFormat {
|
||||||
|
/// Use the [`tracing_subscriber::fmt::format::Pretty`] formatter
|
||||||
|
Pretty,
|
||||||
|
/// Use the [`tracing_subscriber::fmt::format::Full`] formatter
|
||||||
|
#[default]
|
||||||
|
Full,
|
||||||
|
/// Use the [`tracing_subscriber::fmt::format::Compact`] formatter
|
||||||
|
Compact,
|
||||||
|
/// Use the [`tracing_subscriber::fmt::format::Json`] formatter
|
||||||
|
Json,
|
||||||
|
}
|
||||||
|
|
||||||
fn false_fn() -> bool {
|
fn false_fn() -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue