mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-30 18:44:36 +01:00
use default type for RouterBuilder
This commit is contained in:
parent
04a3e59bd5
commit
82930de8e7
@ -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>)>,
|
||||||
|
Loading…
Reference in New Issue
Block a user