cargo fmt

This commit is contained in:
Elnu 2023-04-26 18:27:54 -07:00
parent ed11799bf5
commit c4eece7ffd
8 changed files with 113 additions and 53 deletions

View file

@ -38,10 +38,13 @@ pub fn get_final_mora(word: &str) -> String {
let mut iter = word.chars().rev();
let final_char = iter.next().unwrap();
match final_char {
'ゃ' | 'ゅ' | 'ょ' => format!("{}{final_char}", match iter.next() {
Some(c) => c.to_string(),
None => String::from(""),
}),
'ゃ' | 'ゅ' | 'ょ' => format!(
"{}{final_char}",
match iter.next() {
Some(c) => c.to_string(),
None => String::from(""),
}
),
_ => final_char.to_string(),
}
}