Skip to content

Commit

Permalink
fix(rofi): derive Default trait for IconMode
Browse files Browse the repository at this point in the history
  • Loading branch information
fuljo committed Aug 4, 2023
1 parent 8adad59 commit 2427fc6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/rofi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,17 @@ const ENV_ICON_FONT: &str = "ROFI_VSCODE_ICON_FONT";
const ENV_ICON_COLOR: &str = "ROFI_VSCODE_ICON_COLOR";

/// How to show icons next to items
#[derive(Debug)]
#[derive(Debug, Default)]
pub enum IconMode {
/// No icons (default)
None,
/// From current icon theme
#[default]
Theme,
/// From the given nerd font
Nerd,
}

impl Default for IconMode {
fn default() -> Self {
IconMode::Theme
}
}

/// Configuration for the icons
#[derive(Debug)]
pub struct IconConfig {
Expand Down

0 comments on commit 2427fc6

Please sign in to comment.