Просмотр исходного кода

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

Amr Bashir 1 год назад
Родитель
Сommit
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