router: no need to use Fn (fn also works for static closures)

This commit is contained in:
Dietmar Maurer 2018-11-16 11:12:00 +01:00
parent 1716112285
commit dd4b1a797b

View File

@ -181,7 +181,7 @@ fn handle_sync_api_request(
tokio::spawn(task);
*/
let res = (*info.handler)(params, info)?;
let res = (info.handler)(params, info)?;
Ok(res)