Skip to content

Commit

Permalink
refactor: reorganize modules with 2015 style
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Dec 31, 2023
1 parent 028f45c commit f95c09f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/conversion.rs → src/conversion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use std::cmp::{max, min};

use crate::zhuyin::Syllable;

pub use self::chewing::ChewingEngine;
pub(crate) use self::symbol::{full_width_symbol_input, special_symbol_input};
pub use chewing::ChewingEngine;
pub(crate) use symbol::{full_width_symbol_input, special_symbol_input};

/// TODO: doc
#[derive(Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash, Clone)]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/editor.rs → src/editor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ impl Selecting {
C: ConversionEngine<LayeredDictionary<AnyDictionary, ()>>,
{
// FIXME load from data
let reader = io::Cursor::new(include_str!("../data/symbols.dat"));
let reader = io::Cursor::new(include_str!("../../data/symbols.dat"));
let sel = SymbolSelector::new(reader).expect("parse symbols table");
Selecting {
page_no: 0,
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f95c09f

Please sign in to comment.