From 2690c65c21e623db953a72b629072d6e8de3078a Mon Sep 17 00:00:00 2001 From: Erin Date: Wed, 14 Sep 2022 21:57:02 +0200 Subject: [PATCH] stuff --- Cargo.lock | 2 +- ablescript/src/interpret.rs | 4 ++-- ablescript_cli/Cargo.toml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4dd6386..1031e6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,7 +12,7 @@ dependencies = [ [[package]] name = "ablescript_cli" -version = "0.5.0" +version = "0.5.2" dependencies = [ "ablescript", "clap", diff --git a/ablescript/src/interpret.rs b/ablescript/src/interpret.rs index 986c46a..d74a32f 100644 --- a/ablescript/src/interpret.rs +++ b/ablescript/src/interpret.rs @@ -129,12 +129,12 @@ impl ExecEnv { }), }?; - while self.finalisers.len() != 0 { + while !self.finalisers.is_empty() { for block in std::mem::take(&mut self.finalisers) { self.eval_stmts_hs(&block, true)?; } } - + Ok(()) } diff --git a/ablescript_cli/Cargo.toml b/ablescript_cli/Cargo.toml index 04b7874..6160b9f 100644 --- a/ablescript_cli/Cargo.toml +++ b/ablescript_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ablescript_cli" -version = "0.5.0" +version = "0.5.2" authors = ["able "] edition = "2021" @@ -10,7 +10,7 @@ documentation = "https://ablecorp.us/able-script-the-book/" repository = "https://git.ablecorp.us/AbleScript/able-script" [dependencies] -ablescript = { version = "0.5.0", path = "../ablescript" } +ablescript = { version = "0.5.2", path = "../ablescript" } clap = "3.2" rustyline = "9.1"