1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-12-03 22:59:07 +02:00

Update Cargo.toml on dev check

This commit is contained in:
mo8it
2024-04-16 03:30:28 +02:00
parent d1ebbaa6f6
commit aa813fbce1
4 changed files with 20 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
use anyhow::{Context, Result};
use clap::Subcommand;
use crate::info_file::InfoFile;
mod check;
mod init;
@@ -11,10 +13,10 @@ pub enum DevCommands {
}
impl DevCommands {
pub fn run(self) -> Result<()> {
pub fn run(self, info_file: InfoFile) -> Result<()> {
match self {
DevCommands::Init => init::init().context(INIT_ERR),
DevCommands::Check => check::check(),
DevCommands::Check => check::check(info_file),
}
}
}