config: accept FnMut instead of Fn for callbacks
This commit is contained in:
parent
37fc28c749
commit
86e582472d
5 changed files with 64 additions and 44 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue