mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
cleanup: derive Default where possible
Not doing so triggers a clippy lint on Rust >= 1.91. Part of #12013
This commit is contained in:
committed by
Johannes Altmanninger
parent
f511ef69c3
commit
6422139fe0
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user