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

This commit is contained in:
Amr Bashir 2023-11-20 22:55:18 +02:00 committed by GitHub
parent f26d9f0884
commit b8756bc34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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