From c96a1d2125027ffb06e87bba20f6b88880695317 Mon Sep 17 00:00:00 2001 From: madoka773 <85693457+madoka773@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:34:23 +0800 Subject: [PATCH] fix update rquickjs 0.4.0 --- backend/tauri/src/enhance/script.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tauri/src/enhance/script.rs b/backend/tauri/src/enhance/script.rs index 97b34c2092..6c207d921d 100644 --- a/backend/tauri/src/enhance/script.rs +++ b/backend/tauri/src/enhance/script.rs @@ -3,7 +3,7 @@ use anyhow::Result; use serde_yaml::Mapping; pub fn use_script(script: String, config: Mapping) -> Result<(Mapping, Vec<(String, String)>)> { - use rquickjs::{Context, Func, Runtime}; + use rquickjs::{function::Func, Context, Runtime}; use std::sync::{Arc, Mutex}; let runtime = Runtime::new().unwrap();