1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-20 00:21:07 +00:00

Make App::configure take an FnOnce (#825)

This commit is contained in:
Nikolai Vazquez 2019-05-10 23:44:49 +02:00 committed by Nikolay Kim
parent a17ff492a1
commit a77b0b054a

View file

@ -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);