diff options
| author | Fuwn <[email protected]> | 2024-03-24 13:40:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-03-24 13:40:39 +0000 |
| commit | b1be32525a56e2427f972d1625f5fd79e583b9fb (patch) | |
| tree | 8bd8f092141a54f6e14d8b56c5228f1f12f3ef69 | |
| parent | chore(rustfmt): remove old rules (diff) | |
| download | germ-b1be32525a56e2427f972d1625f5fd79e583b9fb.tar.xz germ-b1be32525a56e2427f972d1625f5fd79e583b9fb.zip | |
fix(meta): use generic lifetime for initialiser
| -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(); |