mirror of https://github.com/fafhrd91/actix-web
Merge branch 'master' into make_json_config_send
This commit is contained in:
commit
98266438ac
|
@ -1,5 +1,10 @@
|
|||
# Changes
|
||||
|
||||
### Changes
|
||||
|
||||
* `App::configure` take an `FnOnce` instead of `Fn`
|
||||
|
||||
|
||||
## [1.0.0-beta.3] - 2019-05-04
|
||||
|
||||
### Added
|
||||
|
|
|
@ -128,7 +128,7 @@ where
|
|||
/// ```
|
||||
pub fn configure<F>(mut self, f: F) -> Self
|
||||
where
|
||||
F: Fn(&mut ServiceConfig),
|
||||
F: FnOnce(&mut ServiceConfig),
|
||||
{
|
||||
let mut cfg = ServiceConfig::new();
|
||||
f(&mut cfg);
|
||||
|
|
Loading…
Reference in New Issue