diff --git a/CHANGES.md b/CHANGES.md index cfd7a6df8..ce7da6d28 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changes +### Changes + +* `App::configure` take an `FnOnce` instead of `Fn` + + ## [1.0.0-beta.3] - 2019-05-04 ### Added 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);