add must use to several hooks

This commit is contained in:
Evan Almloff committed 2023-10-14 12:08:54 -05:00
1 parent 04f83e1e92
commit 3bf6d2d7cf
21 files changed
+25

No files matched your search

+2
View File
@@ -24,6 +24,8 @@ macro_rules! use_callback {
)
};
}
#[must_use]
pub fn use_callback<T, R, F>(cx: &ScopeState, make: impl FnOnce() -> R) -> impl FnMut(T) + '_
where
R: FnMut(T) -> F + 'static,