Skip to content

Commit d4bc110

Browse files
jshasyphar
authored andcommitted
Don't do canonical in impl_axum_webpage yet
1 parent ca371d1 commit d4bc110

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/web/page/web_page.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ macro_rules! impl_webpage {
6161

6262
#[macro_export]
6363
macro_rules! impl_axum_webpage {
64-
($page:ty = $template:literal $(, status = $status:expr)? $(, content_type = $content_type:expr)? $(, canonical_url = $canonical_url:expr)? $(,)?) => {
65-
$crate::impl_axum_webpage!($page = |_| ::std::borrow::Cow::Borrowed($template) $(, status = $status)? $(, content_type = $content_type)? $(, canonical_url = $canonical_url:expr)?);
64+
($page:ty = $template:literal $(, status = $status:expr)? $(, content_type = $content_type:expr)? $(,)?) => {
65+
$crate::impl_axum_webpage!($page = |_| ::std::borrow::Cow::Borrowed($template) $(, status = $status)? $(, content_type = $content_type)?);
6666
};
6767

68-
($page:ty = $template:expr $(, status = $status:expr)? $(, content_type = $content_type:expr)? $(, canonical_url = $canonical_url:expr)? $(,)?) => {
68+
($page:ty = $template:expr $(, status = $status:expr)? $(, content_type = $content_type:expr)? $(,)?) => {
6969
impl axum::response::IntoResponse for $page
7070
{
7171
fn into_response(self) -> ::axum::response::Response {

0 commit comments

Comments
 (0)