File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,21 +213,21 @@ fn main() {
213
213
let unexport_options = GpioUnexportOptions {
214
214
gpio_opts : gpio_options,
215
215
pin : String :: from ( m. value_of ( "pin" ) . unwrap ( ) ) ,
216
- symlink_root : m. value_of ( "symlink-root" ) . map ( |slr| String :: from ( slr ) ) ,
216
+ symlink_root : m. value_of ( "symlink-root" ) . map ( String :: from) ,
217
217
} ;
218
218
gpio_unexport:: main ( & cfg, & unexport_options) ;
219
219
}
220
220
( "unexport-all" , Some ( m) ) => {
221
221
let unexportall_options = GpioUnexportAllOptions {
222
222
gpio_opts : gpio_options,
223
- symlink_root : m. value_of ( "symlink-root" ) . map ( |slr| String :: from ( slr ) ) ,
223
+ symlink_root : m. value_of ( "symlink-root" ) . map ( String :: from) ,
224
224
} ;
225
225
gpio_unexportall:: main ( & cfg, & unexportall_options) ;
226
226
}
227
227
( "status" , Some ( m) ) => {
228
228
let status_options = GpioStatusOptions {
229
229
gpio_opts : gpio_options,
230
- pin : m. value_of ( "pin" ) . map ( |pin| String :: from ( pin ) ) ,
230
+ pin : m. value_of ( "pin" ) . map ( String :: from) ,
231
231
} ;
232
232
gpio_status:: main ( & cfg, & status_options) ;
233
233
}
You can’t perform that action at this time.
0 commit comments