From ea33d92514c809a2efaa9940ce05a5765f3cb41c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 29 Jan 2026 22:03:31 +0100 Subject: Split lib.rs into multiple files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- crates/cli/src/inflection.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'crates/cli/src/inflection.rs') diff --git a/crates/cli/src/inflection.rs b/crates/cli/src/inflection.rs index 8799e9b..d3a23dd 100644 --- a/crates/cli/src/inflection.rs +++ b/crates/cli/src/inflection.rs @@ -1,6 +1,6 @@ -use mihi::{ - configuration, get_adjective_table, get_inflected_from, get_noun_table, Category, Word, -}; +use mihi::cfg::configuration; +use mihi::inflection::{get_adjective_table, get_inflected_from, get_noun_table}; +use mihi::word::{Category, Word}; fn print_noun_inflection(word: &Word) -> Result<(), String> { let table = get_noun_table(word)?; @@ -119,14 +119,15 @@ pub fn print_full_inflection_for(word: Word) -> Result<(), String> { #[cfg(test)] mod tests { use super::*; - use mihi::DeclensionTable; + use mihi::inflection::DeclensionTable; + use mihi::word::{find_by, select_enunciated}; fn get_word(enunciated: &str) -> Word { - let words = mihi::select_enunciated(Some(enunciated.to_string()), &[]).unwrap(); + let words = select_enunciated(Some(enunciated.to_string()), &[]).unwrap(); assert_eq!(words.len(), 1); - mihi::find_by(words.first().unwrap().as_str()).unwrap() + find_by(words.first().unwrap().as_str()).unwrap() } fn stringify_with(word: &Word, table: &DeclensionTable) -> String { -- cgit v1.2.3