Update dependencies and fix Deserialize lifetime.
This commit is contained in:
parent
ffc0333e5c
commit
e5dd90547f
|
@ -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"
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue