diff --git a/src/builtins/block.rs b/src/builtins/block.rs index 4fcb2fcbd..0db077605 100644 --- a/src/builtins/block.rs +++ b/src/builtins/block.rs @@ -3,7 +3,7 @@ // Implementation of the block builtin. use super::prelude::*; -#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] enum Scope { #[default] Unset, diff --git a/src/highlight/highlight.rs b/src/highlight/highlight.rs index 46aca5a56..eac7ba676 100644 --- a/src/highlight/highlight.rs +++ b/src/highlight/highlight.rs @@ -1213,9 +1213,8 @@ fn get_fallback(role: HighlightRole) -> HighlightRole { } /// Describes the role of a span of text. -#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] +#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)] #[repr(u8)] -#[derive(Default)] pub enum HighlightRole { #[default] normal, // normal text