Skip to content

Commit

Permalink
chore: remove must use on on egui functions
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jan 17, 2025
1 parent 504b129 commit a793805
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/data_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ pub enum DataState<T, E: ErrorBounds = anyhow::Error> {
impl<T, E: ErrorBounds> DataState<T, E> {
#[cfg(feature = "egui")]
/// Calls [Self::start_request] and adds a spinner if progress can be made
#[must_use]
pub fn egui_start_request<F, R>(&mut self, ui: &mut egui::Ui, fetch_fn: F) -> CanMakeProgress
where
F: FnOnce() -> R,
Expand Down Expand Up @@ -113,7 +112,6 @@ impl<T, E: ErrorBounds> DataState<T, E> {
/// WARNING: Does nothing if `self` is [Self::None]
///
/// If a `error_btn_text` is provided then it overrides the default
#[must_use]
pub fn egui_poll_mut(
&mut self,
ui: &mut egui::Ui,
Expand Down Expand Up @@ -143,7 +141,6 @@ impl<T, E: ErrorBounds> DataState<T, E> {

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

0 comments on commit a793805

Please sign in to comment.