1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-30 21:04:35 +01:00

use default type for RouterBuilder

This commit is contained in:
Nikolay Kim 2019-03-04 14:03:46 -08:00
parent 04a3e59bd5
commit 82930de8e7

View File

@ -126,7 +126,7 @@ impl ResourceMap {
} }
} }
pub struct RouterBuilder<T, U> { pub struct RouterBuilder<T, U = ()> {
rmap: ResourceMap, rmap: ResourceMap,
named: HashMap<String, ResourceDef>, named: HashMap<String, ResourceDef>,
resources: Vec<(T, Option<U>)>, resources: Vec<(T, Option<U>)>,