remove brackets around address

This commit is contained in:
Evan Almloff committed 2023-06-23 18:56:20 -07:00
1 parent 99674fcf94
commit b8806b0854
5 files changed
+7 -7

No files matched your search

+3 -3
View File
@@ -11,9 +11,9 @@ macro_rules! launch_router {
$router_cfg
};
(@[$address:expr], $route:ty, $(cfg: $router_cfg:expr,)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
(@$address:expr, $route:ty, $(cfg: $router_cfg:expr,)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
dioxus_fullstack::launch!(
@[$address],
@$address,
dioxus_fullstack::router::RouteWithCfg::<$route>,
(dioxus_fullstack::launch_router!(@router_config $($router_cfg)?)),
{
@@ -87,7 +87,7 @@ macro_rules! launch {
$props
};
(@[$address:expr], $comp:path, $(( $props:expr ),)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
(@ $address:expr, $comp:path, $(( $props:expr ),)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
#[cfg(feature = "web")]
{
#[allow(unused)]