diff --git a/kanpyo-dict/Cargo.toml b/kanpyo-dict/Cargo.toml index 448ba4e..883ae44 100644 --- a/kanpyo-dict/Cargo.toml +++ b/kanpyo-dict/Cargo.toml @@ -21,4 +21,4 @@ encoding_rs = "0.8.33" itertools = "0.14.0" regex = "1.10.5" serde = { version = "1.0.203", features = ["derive"] } -zip = "4.0.0" +zip = "6.0.0" diff --git a/kanpyo-dict/src/char_category_def.rs b/kanpyo-dict/src/char_category_def.rs index 8113b67..795d219 100644 --- a/kanpyo-dict/src/char_category_def.rs +++ b/kanpyo-dict/src/char_category_def.rs @@ -43,7 +43,7 @@ impl DictReadWrite for CharCategoryDef { let mut buf = Vec::new(); match bincode::encode_into_std_write(self, &mut buf, bincode::config::standard()) { Ok(_) => w.write_all(&buf), - Err(e) => Err(std::io::Error::new(std::io::ErrorKind::Other, e)), + Err(e) => Err(std::io::Error::other(e)), } } @@ -52,7 +52,7 @@ impl DictReadWrite for CharCategoryDef { r.read_to_end(&mut buf)?; match bincode::decode_from_slice(&buf, bincode::config::standard()) { Ok(v) => Ok(v.0), - Err(e) => Err(std::io::Error::new(std::io::ErrorKind::Other, e)), + Err(e) => Err(std::io::Error::other(e)), } } } diff --git a/kanpyo-dict/src/morph_feature.rs b/kanpyo-dict/src/morph_feature.rs index 6bbc576..1dcbc9e 100644 --- a/kanpyo-dict/src/morph_feature.rs +++ b/kanpyo-dict/src/morph_feature.rs @@ -21,7 +21,7 @@ impl DictReadWrite for MorphFeatureTable { fn write_dict(&self, w: &mut W) -> std::io::Result<()> { match bincode::encode_to_vec(self, bincode::config::standard()) { Ok(enc) => w.write_all(&enc), - Err(e) => Err(std::io::Error::new(std::io::ErrorKind::Other, e)), + Err(e) => Err(std::io::Error::other(e)), } } fn from_dict(r: &mut R) -> std::io::Result @@ -32,7 +32,7 @@ impl DictReadWrite for MorphFeatureTable { r.read_to_end(&mut buf)?; match bincode::decode_from_slice(&buf, bincode::config::standard()) { Ok(ret) => Ok(ret.0), - Err(e) => Err(std::io::Error::new(std::io::ErrorKind::Other, e)), + Err(e) => Err(std::io::Error::other(e)), } } }