diff --git a/src/plugin/manager.rs b/src/plugin/manager.rs index 9a9bd482..6126ab38 100644 --- a/src/plugin/manager.rs +++ b/src/plugin/manager.rs @@ -877,7 +877,7 @@ impl Drop for PluginProcess { } impl PluginProcess { - #[allow(clippy::zero_ptr, clippy::drop_copy)] + #[allow(clippy::zero_ptr, dropping_copy_types)] pub fn start( plugin: Plugin, config: PluginConfig, diff --git a/src/utils/json_color.rs b/src/utils/json_color.rs index 9e9fcaa0..af3aa319 100644 --- a/src/utils/json_color.rs +++ b/src/utils/json_color.rs @@ -27,7 +27,7 @@ macro_rules! colorize { } /// The set of available colors for the various JSON components. -#[derive(Clone)] +#[derive(Clone, Default)] pub enum Color { #[allow(dead_code)] Black, @@ -43,15 +43,10 @@ pub enum Color { Yellow, /// Default color + #[default] Plain, } -impl Default for Color { - fn default() -> Self { - Color::Plain - } -} - #[derive(Default)] pub struct ColorizerBuilder { null: Color,