'a instead of 'de

This commit is contained in:
Mylloon 2024-10-24 20:19:26 +02:00
parent 7f3434b7c1
commit 87d0fa3c11
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -28,10 +28,10 @@ pub struct Tag {
pub name: String,
}
impl<'de> Deserialize<'de> for Tag {
impl<'a> Deserialize<'a> for Tag {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: Deserializer<'de>,
D: Deserializer<'a>,
{
match <&str>::deserialize(deserializer) {
Ok(s) => match serde_yml::from_str(s) {