Make gen module private for now; lint fixes

This commit is contained in:
2025-08-18 12:30:34 -06:00
parent 4b4564207a
commit 5e7269ddcc
9 changed files with 16 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
pub mod convert;
pub mod dat;
pub mod extract;
pub mod r#gen;
// [WIP] Disc image building is incomplete and not yet exposed.
// pub mod r#gen;
pub mod info;
pub mod verify;

View File

@@ -12,8 +12,9 @@ pub enum SubCommand {
Convert(cmd::convert::Args),
Dat(cmd::dat::Args),
Extract(cmd::extract::Args),
// [WIP] Disc image building is incomplete and not yet exposed.
// Gen(cmd::gen::Args),
GenTest(cmd::r#gen::TestArgs),
// GenTest(cmd::r#gen::TestArgs),
Info(cmd::info::Args),
Verify(cmd::verify::Args),
}
@@ -23,8 +24,9 @@ pub fn run(command: SubCommand) -> nod::Result<()> {
SubCommand::Convert(c_args) => cmd::convert::run(c_args),
SubCommand::Dat(c_args) => cmd::dat::run(c_args),
SubCommand::Extract(c_args) => cmd::extract::run(c_args),
// [WIP] Disc image building is incomplete and not yet exposed.
// SubCommand::Gen(c_args) => cmd::gen::run(c_args),
SubCommand::GenTest(c_args) => cmd::r#gen::run_test(c_args),
// SubCommand::GenTest(c_args) => cmd::r#gen::run_test(c_args),
SubCommand::Info(c_args) => cmd::info::run(c_args),
SubCommand::Verify(c_args) => cmd::verify::run(c_args),
}

View File

@@ -8,7 +8,7 @@ use std::{
path::{MAIN_SEPARATOR, Path},
};
pub fn path_display(path: &Path) -> PathDisplay { PathDisplay { path } }
pub fn path_display(path: &Path) -> PathDisplay<'_> { PathDisplay { path } }
pub struct PathDisplay<'a> {
path: &'a Path,