mirror of
https://github.com/encounter/nod-rs.git
synced 2025-12-10 22:17:40 +00:00
Make gen module private for now; lint fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user