refactor: use canonical module paths
This commit is contained in:
1 parent
c6205a337c
commit
feeb3e6d50
21 files changed
+28
-46
No files matched your search
+2
-2
@@ -8,7 +8,7 @@ use clap::ArgMatches;
|
||||
|
||||
use super::utils::{require_instance, required_arg};
|
||||
use crate::cli::output::print_table;
|
||||
use crate::instance::ContentEntry;
|
||||
use crate::instance::content::entry::ContentEntry;
|
||||
|
||||
type CliResult = Result<(), Box<dyn std::error::Error>>;
|
||||
type Scanner = fn(&Path, &str) -> Vec<ContentEntry>;
|
||||
@@ -106,7 +106,7 @@ fn toggle_entry(
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
crate::instance::toggle_entry(entry)?;
|
||||
crate::instance::content::entry::toggle_entry(entry)?;
|
||||
println!(
|
||||
"{}d '{}'.",
|
||||
if should_enable { "Enable" } else { "Disable" },
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::find_entry_by_stem;
|
||||
use crate::instance::ContentEntry;
|
||||
use crate::instance::content::entry::ContentEntry;
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn entry(file_stem: &str) -> ContentEntry {
|
||||
|
||||
Reference in new issue
Block a user