Skip to content

Commit a793805

Browse files
committed
chore: remove must use on on egui functions
1 parent 504b129 commit a793805

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/data_state.rs

-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ pub enum DataState<T, E: ErrorBounds = anyhow::Error> {
6161
impl<T, E: ErrorBounds> DataState<T, E> {
6262
#[cfg(feature = "egui")]
6363
/// Calls [Self::start_request] and adds a spinner if progress can be made
64-
#[must_use]
6564
pub fn egui_start_request<F, R>(&mut self, ui: &mut egui::Ui, fetch_fn: F) -> CanMakeProgress
6665
where
6766
F: FnOnce() -> R,
@@ -113,7 +112,6 @@ impl<T, E: ErrorBounds> DataState<T, E> {
113112
/// WARNING: Does nothing if `self` is [Self::None]
114113
///
115114
/// If a `error_btn_text` is provided then it overrides the default
116-
#[must_use]
117115
pub fn egui_poll_mut(
118116
&mut self,
119117
ui: &mut egui::Ui,
@@ -143,7 +141,6 @@ impl<T, E: ErrorBounds> DataState<T, E> {
143141

144142
#[cfg(feature = "egui")]
145143
/// Wraps [Self::egui_poll_mut] and returns an immutable reference
146-
#[must_use]
147144
pub fn egui_poll(&mut self, ui: &mut egui::Ui, error_btn_text: Option<&str>) -> Option<&T> {
148145
self.egui_poll_mut(ui, error_btn_text).map(|x| &*x)
149146
}

0 commit comments

Comments
 (0)