Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions src/speech.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use sxd_xpath_no_unsafe::{Factory, Value, XPath};
use sxd_xpath_no_unsafe::nodeset::Node;
use std::fmt;
use std::time::SystemTime;
use strum_macros::Display;
use crate::definitions::read_definitions_file;
use crate::errors::*;
use crate::prefs::*;
Expand Down Expand Up @@ -1976,7 +1977,7 @@ impl UnicodeDef {
type UnicodeTable = Rc<RefCell<HashMap<u32,Vec<Replacement>>>>;
type FilesAndTimesShared = Rc<RefCell<FilesAndTimes>>;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Display)]
pub enum RulesFor {
Intent,
Speech,
Expand All @@ -1985,19 +1986,6 @@ impl UnicodeDef {
Braille,
}

impl fmt::Display for RulesFor {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let name = match self {
RulesFor::Intent => "Intent",
RulesFor::Speech => "Speech",
RulesFor::OverView => "OverView",
RulesFor::Navigation => "Navigation",
RulesFor::Braille => "Braille",
};
return write!(f, "{name}");
}
}


#[derive(Debug, Clone)]
pub struct FileAndTime {
Expand Down
Loading