Skip to content

Commit 56f5b9b

Browse files
committed
give ownership of arc; tag 0.0.5-a4
1 parent dde5bb7 commit 56f5b9b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "calcit_regex"
3-
version = "0.0.5-a3"
3+
version = "0.0.5-a4"
44
authors = ["jiyinyiyong <[email protected]>"]
55
edition = "2021"
66

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn re_pattern(args: Vec<Edn>) -> Result<Edn, String> {
1616
Ok(pattern) => {
1717
let p = Arc::from(pattern);
1818
let p2 = p.to_owned();
19-
// std::mem::forget(p);
19+
std::mem::forget(p);
2020
Ok(Edn::AnyRef(EdnAnyRef(p2)))
2121
}
2222
Err(e) => Err(format!("re-pattern failed, {}", e)),

0 commit comments

Comments
 (0)