Skip to content

Commit

Permalink
fix(cdb): build with Rust 1.70
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jan 3, 2024
1 parent 23d5587 commit 8769b91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dictionary/cdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl From<CdbDictionaryError> for DictionaryUpdateError {
impl From<BuildDictionaryError> for CdbDictionaryError {
fn from(value: BuildDictionaryError) -> Self {
CdbDictionaryError {
source: io::Error::other(value),
source: io::Error::new(io::ErrorKind::Other, value),
}
}

Check warning on line 124 in src/dictionary/cdb.rs

View check run for this annotation

Codecov / codecov/patch

src/dictionary/cdb.rs#L120-L124

Added lines #L120 - L124 were not covered by tests
}
Expand Down
2 changes: 1 addition & 1 deletion src/dictionary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 8769b91

Please sign in to comment.