diff --git a/src/app.rs b/src/app.rs index bac71250f..eb14d46fa 100644 --- a/src/app.rs +++ b/src/app.rs @@ -128,7 +128,7 @@ where /// ``` pub fn configure(mut self, f: F) -> Self where - F: Fn(&mut ServiceConfig), + F: FnOnce(&mut ServiceConfig), { let mut cfg = ServiceConfig::new(); f(&mut cfg);