feat: make clippy happy
This commit is contained in:
@@ -59,7 +59,7 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
if rs_args.list {
|
||||
list::list_scripts(&rs_args.script_repo, rs_args.arguments.get(0));
|
||||
list::list_scripts(&rs_args.script_repo, rs_args.arguments.first());
|
||||
return;
|
||||
}
|
||||
if rs_args.install {
|
||||
@@ -74,7 +74,7 @@ fn main() {
|
||||
fn do_run_script(rs_args: &RunScriptArgs) {
|
||||
#[cfg(feature = "switch-rust-lang")]
|
||||
{
|
||||
run_rs::do_run_script(&rs_args);
|
||||
run_rs::do_run_script(rs_args);
|
||||
return;
|
||||
}
|
||||
#[cfg(feature = "switch-ts-lang")]
|
||||
|
||||
@@ -9,7 +9,6 @@ pub fn verify_script(file: &str, skip_verify: bool) {
|
||||
Ok(true) => {
|
||||
// Verify file ok!
|
||||
debugging!("Script {file} verification success");
|
||||
return;
|
||||
}
|
||||
Ok(false) => {
|
||||
failure_and_exit!("Verify script {file} failed, no signature or bad signature");
|
||||
|
||||
Reference in New Issue
Block a user