diff --git a/src/main.rs b/src/main.rs index 2afb48b..0cd152f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,7 +71,7 @@ fn main() -> Result<(), ureq::Error> { output.clear(); if query.starts_with(':') || query.starts_with(':') { /* Kanji search */ - if try_load == true { + if try_load { radk_list = { match radk::parse_file(&path) { Ok(radk_list) => radk_list, Err(_e) => radk_list, diff --git a/src/word_search.rs b/src/word_search.rs index 3fd74bb..084c2e2 100644 --- a/src/word_search.rs +++ b/src/word_search.rs @@ -199,7 +199,7 @@ fn format_sense_info(value: &Value, output: &mut String, t: bool) { if let Some(info) = all_info.get(0) { if t { - output.push_str(","); + output.push(','); } output.push_str(" \x1b[90m"); output.push_str(value_to_str(info));