diff options
Diffstat (limited to 'src/meta.rs')
| -rw-r--r-- | src/meta.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::borrow::Cow<'static, str>>) -> Self { + pub fn from_string<'a>(meta: impl Into<std::borrow::Cow<'a, str>>) -> Self { let meta = meta.into().to_string(); let mut metas = meta.split(';'); let mime = metas.next().unwrap_or("").to_string(); |