From d1460de7b76b0a637614ea6e4fee6d665a42b7d5 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 24 Mar 2024 06:40:39 -0700 Subject: [PATCH] fix(meta): use generic lifetime for initialiser --- src/meta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta.rs b/src/meta.rs index 8962d7f..1991d3a 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -82,7 +82,7 @@ impl Meta { /// ); /// ``` #[must_use] - pub fn from_string(meta: impl Into>) -> Self { + pub fn from_string<'a>(meta: impl Into>) -> Self { let meta = meta.into().to_string(); let mut metas = meta.split(';'); let mime = metas.next().unwrap_or("").to_string();