fix router release builds
This commit is contained in:
1 parent
8eda785ace
commit
33e90da314
1 file changed
+1
-2
@@ -49,8 +49,7 @@ pub fn use_route<R: Routable + Clone>() -> R {
|
|||||||
match use_router_internal() {
|
match use_router_internal() {
|
||||||
Some(r) => r.current(),
|
Some(r) => r.current(),
|
||||||
None => {
|
None => {
|
||||||
#[cfg(debug_assertions)]
|
panic!("`use_route` must have access to a parent router")
|
||||||
panic!("`use_route` must have access to a parent router");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user