瀏覽代碼

cargo fmt

Denis Richartz 3 年之前
父節點
當前提交
b71cf6ed4a
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      packages/router/src/components/router.rs

+ 1 - 3
packages/router/src/components/router.rs

@@ -32,7 +32,5 @@ pub fn Router<'a>(cx: Scope<'a, RouterProps<'a>>) -> Element {
         cx.props.onchange.call(path.to_string());
     }
 
-    cx.render(rsx!(
-        &cx.props.children
-    ))
+    cx.render(rsx!(&cx.props.children))
 }