瀏覽代碼

perf: remove extranous call in `StateManager::get` (#8272)

Amr Bashir 1 年之前
父節點
當前提交
b8756bc34e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      core/tauri/src/state.rs

+ 0 - 1
core/tauri/src/state.rs

@@ -71,7 +71,6 @@ impl StateManager {
 
   /// Gets the state associated with the specified type.
   pub fn get<T: Send + Sync + 'static>(&self) -> State<'_, T> {
-    self.0.get::<T>();
     State(
       self
         .0