Skip to content

Commit

Permalink
使用Rc::try_unwrap而非Rc::into_inner, 以适应低版本rust
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Apr 28, 2024
1 parent a7331e6 commit d590228
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mindustry_logic_bang_lang"
version = "0.15.9"
version = "0.15.10"
edition = "2021"

authors = ["A4-Tacks <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tools/syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl From<&'_ Var> for Var {
impl From<Var> 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<Var> for Rc<String> {
Expand Down

0 comments on commit d590228

Please sign in to comment.