From b706cc894d44af077aa5c95e971315d6c3f74046 Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 21 Jun 2024 13:22:43 +0900 Subject: [PATCH] make all commands pub(super) --- src/command/config.rs | 2 +- src/command/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/config.rs b/src/command/config.rs index 8db715d..5d1827a 100644 --- a/src/command/config.rs +++ b/src/command/config.rs @@ -29,7 +29,7 @@ pub(crate) enum ConfigError { Validate(#[from] validate::ValidationError), } -pub(crate) async fn run(command: Commands) -> Result<(), ConfigError> { +pub(super) async fn run(command: Commands) -> Result<(), ConfigError> { match command { Commands::Update { revision } => update::run(revision).await?, Commands::Validate => validate::run()?, diff --git a/src/command/mod.rs b/src/command/mod.rs index 65a867e..98717d2 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -27,7 +27,7 @@ enum Commands { Config(config::Commands), } -pub(crate) async fn run() -> Result<(), Error> { +pub(super) async fn run() -> Result<(), Error> { let args = Args::parse(); match args.command {