fix router release builds

This commit is contained in:
Evan Almloff committed 2024-01-31 16:58:55 -06:00
1 parent 8eda785ace
commit 33e90da314
1 file changed
+1 -2
+1 -2
View File
@@ -49,8 +49,7 @@ pub fn use_route<R: Routable + Clone>() -> R {
match use_router_internal() {
Some(r) => r.current(),
None => {
#[cfg(debug_assertions)]
panic!("`use_route` must have access to a parent router");
panic!("`use_route` must have access to a parent router")
}
}
}