Преглед на файлове

chore(deps) Update Tauri Core (#1969)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] преди 4 години
родител
ревизия
ac3ddeba26
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      core/tauri/Cargo.toml
  2. 2 2
      core/tauri/src/state.rs

+ 2 - 2
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"

+ 2 - 2
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(<Container![Send + Sync]>::new())
   }
 
   pub(crate) fn set<T: Send + Sync + 'static>(&self, state: T) -> bool {