소스 검색

fix router release builds

Evan Almloff 1 년 전
부모
커밋
33e90da314
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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() {
         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")
         }
     }
 }