From a77b0b054a00f24bf1f3cc3637d919702ddc1602 Mon Sep 17 00:00:00 2001 From: Nikolai Vazquez Date: Fri, 10 May 2019 23:44:49 +0200 Subject: [PATCH 1/2] Make `App::configure` take an `FnOnce` (#825) --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 4066375737c5c7669c4a441bbc4aeb48f46097af Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 10 May 2019 14:45:30 -0700 Subject: [PATCH 2/2] Update CHANGES.md --- CHANGES.md | 5 +++++ 1 file changed, 5 insertions(+) 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