fix: make clippy happier with rust 1.63

This commit is contained in:
Jonathan Kelley committed 2022-06-30 16:35:33 -04:00
1 parent 7550731a96
commit cd7ee47e40
3 files changed
+8 -11

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ impl<T> ProvidedStateInner<T> {
///
///
///
pub fn use_context<'a, T: 'static>(cx: &'a ScopeState) -> Option<UseSharedState<'a, T>> {
pub fn use_context<T: 'static>(cx: &ScopeState) -> Option<UseSharedState<T>> {
let state = cx.use_hook(|_| {
let scope_id = cx.scope_id();
let root = cx.consume_context::<ProvidedState<T>>();