From: Joshua Simmons Date: Sun, 9 Jul 2023 21:22:03 +0000 (+0200) Subject: narcissus-core: Elide lifetime in svg text fn X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=c7b0f22a64e49803cde581c6c5d4bbe0c3127762;p=josh%2Fnarcissus narcissus-core: Elide lifetime in svg text fn --- diff --git a/libs/narcissus-core/src/svg.rs b/libs/narcissus-core/src/svg.rs index 43ad35a..dc43136 100644 --- a/libs/narcissus-core/src/svg.rs +++ b/libs/narcissus-core/src/svg.rs @@ -48,7 +48,7 @@ pub fn svg_end() -> SvgEnd { SvgEnd } -pub fn text<'a, T>(x: f32, y: f32, size: f32, style: Style, text: &'a T) -> Text<'a, T> +pub fn text(x: f32, y: f32, size: f32, style: Style, text: &T) -> Text where T: fmt::Display, {