diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 2803347b..bde0fbdf 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -9,7 +9,7 @@ pub mod mastodon; #[cfg(not(feature = "mastodon"))] pub mod mastodon { pub trait MastodonRouter { - fn mastodon_routes(self) -> Self { self } + fn mastodon_routes(self) -> Self where Self: Sized { self } } impl MastodonRouter for axum::Router {}