Skip to content

Commit

Permalink
refactor: moved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Jun 18, 2022
1 parent 14fbdc6 commit 8569b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sycamore-router-macro/src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ pub fn route_impl(input: DeriveInput) -> syn::Result<TokenStream> {
));
}

// We implement `Default` as well here for the `Router`/`RouterBase` distinction (`Router` needs to pass a default `impl Route` to `RouterBase`)
Ok(quote! {
impl ::sycamore_router::Route for #ty_name {
fn match_route(&self, __segments: &[&str]) -> Self {
#quoted
#err_quoted
}
}
// We implement `Default` as well here for the `Router`/`RouterBase` distinction (`Router` needs to pass a default `impl Route` to `RouterBase`)
impl ::std::default::Default for #ty_name {
fn default() -> Self {
#error_handler_name
Expand Down

0 comments on commit 8569b17

Please sign in to comment.