From 1ee1d17a231045408c8cf4ebdaff86125a4cc0cb Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Tue, 18 Oct 2022 20:27:48 +0800 Subject: [PATCH] fix: fix typos --- fkl_cli/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fkl_cli/src/main.rs b/fkl_cli/src/main.rs index 818eba3..c13ff0e 100644 --- a/fkl_cli/src/main.rs +++ b/fkl_cli/src/main.rs @@ -80,20 +80,20 @@ fn main() { } Some(("run", matches)) => { let function = matches.get_one::("func"); - let filter_impl = matches.get_one::("impl"); + let impl_name = matches.get_one::("impl"); if function.is_none() { error!("Please provide a function name"); return; } - if function.is_none() { - error!("Please provide a function name"); + if impl_name.is_none() { + error!("Please provide a impl name"); return; } let mir = mir_from_file(&feakin_path.unwrap()); - builtin::endpoint_runner::execute(&mir, function.unwrap(), filter_impl.unwrap()); + builtin::endpoint_runner::execute(&mir, function.unwrap(), impl_name.unwrap()); } _ => unreachable!("clap should ensure we don't get here"), };