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:
@@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user