diff --git a/src/config.rs b/src/config.rs index 5792b8b8..074ee33f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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 { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 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 { false }