diff --git a/tachys/src/view/static_types.rs b/tachys/src/view/static_types.rs index d7244b7b60..234b3409a0 100644 --- a/tachys/src/view/static_types.rs +++ b/tachys/src/view/static_types.rs @@ -220,7 +220,7 @@ impl RenderHtml for Static { } impl AddAnyAttr for Static { - type Output = Static; + type Output = Static; fn add_any_attr( self, @@ -229,7 +229,15 @@ impl AddAnyAttr for Static { where Self::Output: RenderHtml, { - todo!() + // inline helper function to assist the compiler with type inference + #[inline(always)] + const fn create_static( + ) -> as AddAnyAttr>::Output { + Static + } + + // call the helper function with the current const value and new attribute type + create_static::() } }