Fix some words not shown シ
This commit is contained in:
parent
3457b3d9cf
commit
51364bb9f7
2 changed files with 3 additions and 3 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -145,9 +145,9 @@ checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
|
|||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.6.0"
|
||||
version = "1.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4ad167a2f54e832b82dbe003a046280dceffe5227b5f79e08e363a29638cfddd"
|
||||
checksum = "10acf907b94fc1b1a152d08ef97e7759650268cf986bf127f387e602b02c7e5a"
|
||||
|
||||
[[package]]
|
||||
name = "percent-encoding"
|
||||
|
|
|
@ -63,7 +63,7 @@ fn print_item(query: &str, value: &Value) -> Option<()> {
|
|||
.map(|i| value_to_str(i))
|
||||
.unwrap_or(query);
|
||||
|
||||
let word = value_to_str(japanese.get("word")?);
|
||||
let word = value_to_str(japanese.get("word").unwrap_or(japanese.get("reading")?));
|
||||
|
||||
println!("{}[{}] {}", word, reading, format_result_tags(value));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue