diff --git a/src/dictionary/cdb.rs b/src/dictionary/cdb.rs index 17337df69..b26fa8d95 100644 --- a/src/dictionary/cdb.rs +++ b/src/dictionary/cdb.rs @@ -119,7 +119,7 @@ impl From for DictionaryUpdateError { impl From for CdbDictionaryError { fn from(value: BuildDictionaryError) -> Self { CdbDictionaryError { - source: io::Error::other(value), + source: io::Error::new(io::ErrorKind::Other, value), } } } diff --git a/src/dictionary/mod.rs b/src/dictionary/mod.rs index a55c29bde..7765065dc 100644 --- a/src/dictionary/mod.rs +++ b/src/dictionary/mod.rs @@ -13,7 +13,7 @@ use thiserror::Error; use crate::zhuyin::{Syllable, SyllableSlice}; -pub use cdb::{CdbDictionary, CdbDictionaryBuilder, CdbDictionaryError}; +pub use self::cdb::{CdbDictionary, CdbDictionaryBuilder, CdbDictionaryError}; pub use layered::LayeredDictionary; pub use loader::{SystemDictionaryLoader, UserDictionaryLoader, UserFreqEstimateLoader}; pub use sqlite::{SqliteDictionary, SqliteDictionaryBuilder, SqliteDictionaryError};