1
0
Fork 0
forked from wry/wry

config: accept FnMut instead of Fn for callbacks

This commit is contained in:
Julian Orth 2024-03-06 13:44:15 +01:00
parent 37fc28c749
commit 86e582472d
5 changed files with 64 additions and 44 deletions

View file

@ -185,7 +185,7 @@ impl Display for PciId {
}
/// Sets the callback to be called when the display goes idle.
pub fn on_idle<F: Fn() + 'static>(f: F) {
pub fn on_idle<F: FnMut() + 'static>(f: F) {
get!().on_idle(f)
}