From ac3ddeba266ddf493e66f8a25c8071d1dcf3eeaf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 22:41:18 -0300 Subject: [PATCH] chore(deps) Update Tauri Core (#1969) Co-authored-by: Renovate Bot Co-authored-by: Lucas Nogueira --- core/tauri/Cargo.toml | 4 ++-- core/tauri/src/state.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index bcb9bcbd7..e81c8dee2 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -37,7 +37,7 @@ tokio = { version = "1.6", features = [ "rt", "rt-multi-thread", "sync" ] } futures = "0.3" uuid = { version = "0.8", features = [ "v4" ] } thiserror = "1.0" -once_cell = "1.7" +once_cell = "1.8" tauri-runtime = { version = "0.1.1", path = "../tauri-runtime" } tauri-macros = { version = "1.0.0-beta.1", path = "../tauri-macros" } tauri-utils = { version = "1.0.0-beta.0", path = "../tauri-utils" } @@ -52,7 +52,7 @@ either = "1.6" tar = "0.4" flate2 = "1.0" http = "0.2" -state = "0.4" +state = "0.5" bincode = "1.3" dirs-next = "2.0" percent-encoding = "2.1" diff --git a/core/tauri/src/state.rs b/core/tauri/src/state.rs index 1f3798913..0127757cc 100644 --- a/core/tauri/src/state.rs +++ b/core/tauri/src/state.rs @@ -42,11 +42,11 @@ impl<'r, 'de: 'r, T: Send + Sync + 'static, P: Params> CommandArg<'de, P> for St } /// The Tauri state manager. -pub struct StateManager(pub(crate) Container); +pub struct StateManager(pub(crate) Container![Send + Sync]); impl StateManager { pub(crate) fn new() -> Self { - Self(Container::new()) + Self(::new()) } pub(crate) fn set(&self, state: T) -> bool {