fix clippy

This commit is contained in:
Evan Almloff committed 2023-10-14 14:32:08 -05:00
1 parent 3bf6d2d7cf
commit 9f729dd6de
4 files changed
+2 -4

No files matched your search

-1
View File
@@ -25,7 +25,6 @@ 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,
-1
View File
@@ -17,7 +17,6 @@ use crate::{use_state, UseState};
/// will be canceled before the new one is started.
///
/// - dependencies: a tuple of references to values that are PartialEq + Clone
#[must_use = "Consider using `cx.spawn` to run a future without reading its value"]
pub fn use_future<T, F, D>(
cx: &ScopeState,
dependencies: D,