Skip to content

Commit

Permalink
Remove all md variants
Browse files Browse the repository at this point in the history
  • Loading branch information
andretcarpizo committed Dec 26, 2023
1 parent 5a5e59b commit 7ecce78
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions src/icon_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
//! The `IconKind` enum represents different kinds of icons for formatting messages. It supports both Unicode or Nerd Font icons if you have a Nerd Font installed.
//!
#![allow(deprecated)]
use enum_iterator::Sequence;
use once_cell::sync::Lazy;

use std::collections::HashMap;
use std::fmt;
use std::sync::RwLock;

use enum_iterator::Sequence;
use once_cell::sync::Lazy;

/// `IconKind` is an enum representing different kinds of icons for formatting messages.
///
/// # Examples
Expand Down Expand Up @@ -55,21 +57,6 @@ pub enum IconKind {

NfOctDotFill,

#[deprecated(since = "1.2.1", note = "Use NfFaAngleRight instead")]
NfMdGreaterThan,
#[deprecated(since = "1.2.1", note = "Use NfFaAngleLeft instead")]
NfMdLessThan,
#[deprecated(since = "1.2.1", note = "Use NfFaeEqual instead")]
NfMdEqual,
#[deprecated(since = "1.2.1", note = "Use NfFaThumbsUp instead")]
NfMdThumbsUp,
#[deprecated(since = "1.2.1", note = "Use NfFaThumbsDown instead")]
NfMdThumbsDown,
#[deprecated(since = "1.2.1", note = "Use NfFaFolder instead")]
NfMdFolder,
#[deprecated(since = "1.2.1", note = "Use NfFaFolderOpen instead")]
NfMdFolderOpen,

UnicodeCrossMark,
UnicodeCheckMark,
UnicodeInformationSource,
Expand Down Expand Up @@ -140,15 +127,6 @@ pub static ICON_MAP: Lazy<RwLock<HashMap<IconKind, (&'static str, &'static str)>
// Nerd Font Oct-icons
i_map.insert(IconKind::NfOctDotFill, ("\u{f444} ", WHITE)); // 

// Deprecated NfMd variants
i_map.insert(IconKind::NfMdGreaterThan, ("\u{f096d} ", WHITE)); // 󰥭
i_map.insert(IconKind::NfMdLessThan, ("\u{f097c} ", WHITE)); // 󰥼
i_map.insert(IconKind::NfMdEqual, ("\u{f01fc} ", WHITE)); // 󰇼
i_map.insert(IconKind::NfMdThumbsUp, ("\u{f0513} ", GREEN)); // 󰔓
i_map.insert(IconKind::NfMdThumbsDown, ("\u{f0511} ", RED)); // 󰔑
i_map.insert(IconKind::NfMdFolder, ("\u{f024b} ", WHITE)); // 󰉋
i_map.insert(IconKind::NfMdFolderOpen, ("\u{f0770} ", WHITE)); // 󰝰

// Unicode icons
#[rustfmt::skip]
i_map.insert(IconKind::UnicodeInformationSource, ("\u{2139}\u{fe0f} ", WHITE)); // ℹ️
Expand All @@ -163,11 +141,13 @@ pub static ICON_MAP: Lazy<RwLock<HashMap<IconKind, (&'static str, &'static str)>

#[cfg(test)]
mod icon_map_tests {
use super::*;
use crate::Whisper;
use color_eyre::Report;
use enum_iterator::all;

use crate::Whisper;

use super::*;

#[test]
fn test_color_eyre_install_setup() -> Result<(), Report> {
color_eyre::install()?;
Expand Down

0 comments on commit 7ecce78

Please sign in to comment.