Remove must_use from Resource (#4551)

This commit is contained in:
Henry authored and GitHub committed 2025-08-19 12:24:28 -07:00
1 parent 021565c171
commit 59bac80dea
1 file changed
-1
-1
View File
@@ -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