From d590228b026af3cfe946a07eb35dd5f7dcca16b9 Mon Sep 17 00:00:00 2001 From: A4-Tacks Date: Mon, 29 Apr 2024 01:04:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8`Rc::try=5Funwrap`=E8=80=8C?= =?UTF-8?q?=E9=9D=9E`Rc::into=5Finner`,=20=E4=BB=A5=E9=80=82=E5=BA=94?= =?UTF-8?q?=E4=BD=8E=E7=89=88=E6=9C=ACrust?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- tools/syntax/Cargo.toml | 2 +- tools/syntax/src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ddbe85..0faed3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -301,7 +301,7 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "mindustry_logic_bang_lang" -version = "0.15.9" +version = "0.15.10" dependencies = [ "display_source", "logic_lint", @@ -535,7 +535,7 @@ dependencies = [ [[package]] name = "syntax" -version = "0.2.17" +version = "0.2.18" dependencies = [ "either", "tag_code", diff --git a/Cargo.toml b/Cargo.toml index 3a09633..e7b9d41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mindustry_logic_bang_lang" -version = "0.15.9" +version = "0.15.10" edition = "2021" authors = ["A4-Tacks "] diff --git a/tools/syntax/Cargo.toml b/tools/syntax/Cargo.toml index 34180bc..6ace455 100644 --- a/tools/syntax/Cargo.toml +++ b/tools/syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "syntax" -version = "0.2.17" +version = "0.2.18" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/tools/syntax/src/lib.rs b/tools/syntax/src/lib.rs index e5dd31e..f561ccf 100644 --- a/tools/syntax/src/lib.rs +++ b/tools/syntax/src/lib.rs @@ -150,7 +150,7 @@ impl From<&'_ Var> for Var { impl From for String { fn from(mut value: Var) -> Self { Rc::make_mut(&mut value.value); - Rc::into_inner(value.value).unwrap() + Rc::try_unwrap(value.value).unwrap() } } impl From for Rc {