]> git.nega.tv - josh/narcissus/commitdiff
narcissus-core: Elide lifetime in svg text fn
authorJoshua Simmons <josh@nega.tv>
Sun, 9 Jul 2023 21:22:03 +0000 (23:22 +0200)
committerJoshua Simmons <josh@nega.tv>
Sun, 9 Jul 2023 22:08:47 +0000 (00:08 +0200)
libs/narcissus-core/src/svg.rs

index 43ad35ae3614fb45dc8e429478842a83f6dd1821..dc43136b19321db90cb50d4fe94e2f4f09d90746 100644 (file)
@@ -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<T>(x: f32, y: f32, size: f32, style: Style, text: &T) -> Text<T>
 where
     T: fmt::Display,
 {