Make clippy happy

This commit is contained in:
Jonathan Kelley committed 2024-02-04 23:03:52 -08:00
1 parent 7d78e5e250
commit 4a7fe938ad
17 files changed
+39 -41

No files matched your search

+2 -2
View File
@@ -117,13 +117,13 @@ impl UseFuture {
/// Reading this does not subscribe to the future's state
pub fn finished(&self) -> bool {
matches!(
self.state.peek().clone(),
*self.state.peek(),
UseFutureState::Ready | UseFutureState::Stopped
)
}
/// Get the current state of the future.
pub fn state(&self) -> ReadOnlySignal<UseFutureState> {
self.state.clone().into()
self.state.into()
}
}