Merge branch 'master' into make_json_config_send

This commit is contained in:
Nikolay Kim 2019-05-12 05:59:50 -07:00 committed by GitHub
commit 98266438ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Changes # Changes
### Changes
* `App::configure` take an `FnOnce` instead of `Fn`
## [1.0.0-beta.3] - 2019-05-04 ## [1.0.0-beta.3] - 2019-05-04
### Added ### Added

View File

@ -128,7 +128,7 @@ where
/// ``` /// ```
pub fn configure<F>(mut self, f: F) -> Self pub fn configure<F>(mut self, f: F) -> Self
where where
F: Fn(&mut ServiceConfig), F: FnOnce(&mut ServiceConfig),
{ {
let mut cfg = ServiceConfig::new(); let mut cfg = ServiceConfig::new();
f(&mut cfg); f(&mut cfg);