1
Fork 0

Update dependencies and fix Deserialize lifetime.

This commit is contained in:
Bauke 2024-02-01 13:20:52 +01:00
parent ffc0333e5c
commit e5dd90547f
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 5 additions and 5 deletions

View File

@ -13,13 +13,13 @@ edition = "2021"
path = "source/lib.rs"
[dependencies]
anyhow = "1.0.68"
toml = "0.5.10"
anyhow = "1.0.79"
toml = "0.8.9"
[dependencies.serde]
features = ["derive"]
version = "1.0.152"
version = "1.0.196"
[dev-dependencies.insta]
features = ["toml"]
version = "1.24.1"
version = "1.34.0"

View File

@ -49,7 +49,7 @@ Some **Markdown**. Or something else!
let (frontmatter, markdown) = toml_frontmatter::parse::<Frontmatter>(sample).unwrap();
```
*/
pub fn parse<'a, D: Deserialize<'a>>(data: &'a str) -> Result<(D, &'a str)> {
pub fn parse<D: for<'de> Deserialize<'de>>(data: &str) -> Result<(D, &str)> {
let start_marker = "---toml\n";
let end_marker = "\n---\n";