Răsfoiți Sursa

fix router release builds

Evan Almloff 1 an în urmă
părinte
comite
33e90da314
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      packages/router/src/hooks/use_route.rs

+ 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() {
     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")
         }
         }
     }
     }
 }
 }