Skip to content

Commit

Permalink
fix(meta): use generic lifetime for initialiser
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuwn committed Mar 24, 2024
1 parent d5216e2 commit d1460de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d1460de

Please sign in to comment.