Skip to content

Commit

Permalink
Make App::configure take an FnOnce (actix#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz authored and fafhrd91 committed May 10, 2019
1 parent a17ff49 commit a77b0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a77b0b0

Please sign in to comment.