1
0
Эх сурвалжийг харах

fix router release builds

Evan Almloff 1 жил өмнө
parent
commit
33e90da314

+ 1 - 2
packages/router/src/hooks/use_route.rs

@@ -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")
         }
     }
 }