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 -4
View File
@@ -110,10 +110,7 @@ use std::{
/// }
/// })
/// ```
pub fn use_ref<'a, T: 'static>(
cx: &'a ScopeState,
initialize_refcell: impl FnOnce() -> T,
) -> &'a UseRef<T> {
pub fn use_ref<T: 'static>(cx: &ScopeState, initialize_refcell: impl FnOnce() -> T) -> &UseRef<T> {
let hook = cx.use_hook(|_| UseRef {
update: cx.schedule_update(),
value: Rc::new(RefCell::new(initialize_refcell())),