From d4a155bc2a57c7fd17dd9dbdcd5496f137899531 Mon Sep 17 00:00:00 2001 From: Jimmy-Z Date: Sat, 19 Aug 2023 20:59:58 +0800 Subject: [PATCH] trivial --- README.md | 8 ++++---- src/main.rs | 8 -------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index e7f0d0c..ae345b6 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ GPL Links === -https://github.com/golddranks/monokakido -https://github.com/stephenmk/monokakido -https://github.com/stephenmk/jitenbot -https://github.com/Jimmy-Z/monokakido +* https://github.com/golddranks/monokakido +* https://github.com/stephenmk/monokakido +* https://github.com/stephenmk/jitenbot +* https://github.com/Jimmy-Z/monokakido diff --git a/src/main.rs b/src/main.rs index 18fa7ca..a72c360 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,10 +74,6 @@ fn main() { } } -// base: the base dir for all dicts -// each sub-dir should have a "Contents" sub-dir -// for example: -// mac: "/Library/Application Support/AppStoreContent/jp.monokakido.Dictionaries/Products/" fn scan_base, O: AsRef>(dir: D, explode: bool, shallow: bool, out_dir: O) { for e in fs::read_dir(dir).unwrap() { let e = e.unwrap(); @@ -118,9 +114,6 @@ fn scan_dict, O: AsRef>(dir: D, explode: bool, shallow: boo } } -// dir: the content directory of a single dict -// should be a sub-dir of the "Contents" dir mentioned above -// should contain sub-dirs like "key" fn scan_contents, O: AsRef>(dir: D, explode: bool, shallow: bool, out_dir: O) { for d in fs::read_dir(dir).unwrap() { let d = d.unwrap(); @@ -192,7 +185,6 @@ fn scan_contents, O: AsRef>(dir: D, explode: bool, shallow: println!("\t\t{}: {}", dn, r.join(", ")); } - // try rsc(map|idx) let safe_get = |k: &str| match l_toc.get(k) { Some(v) => &v[..], None => &[],