Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed Jan 5, 2025
1 parent 36e1cf0 commit 2d47045
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reffect/src/action/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use crate::render_util::item_context_menu;
use nexus::imgui::{MenuItem, Ui};
use std::fmt;

pub struct DynAction<T>(Option<Box<dyn FnMut(&mut T)>>);
pub type Action<T> = Box<dyn FnMut(&mut T)>;

pub struct DynAction<T>(Option<Action<T>>);

impl<T> DynAction<T> {
pub const fn empty() -> Self {
Expand Down

0 comments on commit 2d47045

Please sign in to comment.