@@ -51,9 +51,9 @@ pub fn uefi_revision() -> Revision {
51
51
52
52
/// Call `f` with a slice of [`ConfigTableEntry`]. Each entry provides access to
53
53
/// a vendor-specific table.
54
- pub fn with_config_table < F , R > ( f : F ) -> R
54
+ pub fn with_config_table < F , R > ( mut f : F ) -> R
55
55
where
56
- F : Fn ( & [ ConfigTableEntry ] ) -> R ,
56
+ F : FnMut ( & [ ConfigTableEntry ] ) -> R ,
57
57
{
58
58
let st = table:: system_table_raw_panicking ( ) ;
59
59
// SAFETY: valid per requirements of `set_system_table`.
75
75
///
76
76
/// This function will panic if called after exiting boot services, or if stdin
77
77
/// is not available.
78
- pub fn with_stdin < F , R > ( f : F ) -> R
78
+ pub fn with_stdin < F , R > ( mut f : F ) -> R
79
79
where
80
- F : Fn ( & mut Input ) -> R ,
80
+ F : FnMut ( & mut Input ) -> R ,
81
81
{
82
82
let st = table:: system_table_raw_panicking ( ) ;
83
83
// SAFETY: valid per requirements of `set_system_table`.
@@ -101,9 +101,9 @@ where
101
101
///
102
102
/// This function will panic if called after exiting boot services, or if stdout
103
103
/// is not available.
104
- pub fn with_stdout < F , R > ( f : F ) -> R
104
+ pub fn with_stdout < F , R > ( mut f : F ) -> R
105
105
where
106
- F : Fn ( & mut Output ) -> R ,
106
+ F : FnMut ( & mut Output ) -> R ,
107
107
{
108
108
let st = table:: system_table_raw_panicking ( ) ;
109
109
// SAFETY: valid per requirements of `set_system_table`.
@@ -127,9 +127,9 @@ where
127
127
///
128
128
/// This function will panic if called after exiting boot services, or if stderr
129
129
/// is not available.
130
- pub fn with_stderr < F , R > ( f : F ) -> R
130
+ pub fn with_stderr < F , R > ( mut f : F ) -> R
131
131
where
132
- F : Fn ( & mut Output ) -> R ,
132
+ F : FnMut ( & mut Output ) -> R ,
133
133
{
134
134
let st = table:: system_table_raw_panicking ( ) ;
135
135
// SAFETY: valid per requirements of `set_system_table`.
0 commit comments