Remove must_use from Resource (#4551)
This commit is contained in:
1 parent
021565c171
commit
59bac80dea
1 file changed
-1
@@ -16,7 +16,6 @@ use std::{cell::Cell, future::Future, rc::Rc};
|
||||
#[doc = include_str!("../docs/moving_state_around.md")]
|
||||
#[doc(alias = "use_async_memo")]
|
||||
#[doc(alias = "use_memo_async")]
|
||||
#[must_use = "Consider using `cx.spawn` to run a future without reading its value"]
|
||||
#[track_caller]
|
||||
pub fn use_resource<T, F>(mut future: impl FnMut() -> F + 'static) -> Resource<T>
|
||||
where
|
||||
|
||||
Reference in new issue
Block a user