feat: remove debug in action_with_engine

This commit is contained in:
Byson94
2025-11-20 21:02:23 +05:30
parent 3f48178333
commit 4de148be58
4 changed files with 8 additions and 13 deletions

6
Cargo.lock generated
View File

@@ -527,7 +527,7 @@ dependencies = [
[[package]]
name = "ewwii_plugin_api"
version = "0.6.1"
version = "0.6.7"
dependencies = [
"gtk4",
"rhai",
@@ -1719,9 +1719,9 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
[[package]]
name = "rhai"
version = "1.23.4"
version = "1.23.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "527390cc333a8d2cd8237890e15c36518c26f8b54c903d86fc59f42f08d25594"
checksum = "f4e35aaaa439a5bda2f8d15251bc375e4edfac75f9865734644782c9701b5709"
dependencies = [
"ahash",
"bitflags 2.9.4",

View File

@@ -7,7 +7,7 @@ resolver = "2"
shared_utils = { version = "0.1.0", path = "crates/shared_utils" }
rhai_impl = { version = "0.1.0", path = "crates/rhai_impl" }
scan_prop_proc = { version = "0.1.0", path = "proc_macros/scan_prop_proc" }
ewwii_plugin_api = { version = "0.6.1", path = "crates/ewwii_plugin_api" }
ewwii_plugin_api = { version = "0.6.7", path = "crates/ewwii_plugin_api" }
anyhow = "1.0.86"
ahash = "0.8.12"
@@ -36,7 +36,7 @@ once_cell = "1.19"
pretty_assertions = "1.4.0"
pretty_env_logger = "0.5.0"
regex = "1.10.5"
rhai = { version = "1.22.2" }
rhai = "1.23.6"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
simple-signal = "1.1"

View File

@@ -15,7 +15,7 @@ use std::path::Path;
use std::rc::Rc;
pub struct ParseConfig {
engine: Engine,
pub engine: Engine,
all_nodes: Rc<RefCell<Vec<WidgetNode>>>,
keep_signal: Rc<RefCell<Vec<u64>>>,
}
@@ -180,11 +180,6 @@ impl ParseConfig {
where
F: FnOnce(&mut Engine) -> R,
{
let result = f(&mut self.engine);
let engine_ptr: *const Engine = &self.engine as *const Engine;
log::trace!("Engine pointer after closure: {:p}", engine_ptr);
result
f(&mut self.engine)
}
}

View File

@@ -5,5 +5,5 @@ edition = "2024"
[dependencies]
rhai_impl.workspace = true
rhai = "1.22.2"
rhai.workspace = true
rhai-autodocs = "0.9.0"