'a instead of 'de
This commit is contained in:
parent
7f3434b7c1
commit
87d0fa3c11
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ pub struct Tag {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'de> Deserialize<'de> for Tag {
|
impl<'a> Deserialize<'a> for Tag {
|
||||||
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||||
where
|
where
|
||||||
D: Deserializer<'de>,
|
D: Deserializer<'a>,
|
||||||
{
|
{
|
||||||
match <&str>::deserialize(deserializer) {
|
match <&str>::deserialize(deserializer) {
|
||||||
Ok(s) => match serde_yml::from_str(s) {
|
Ok(s) => match serde_yml::from_str(s) {
|
||||||
|
|
Loading…
Reference in a new issue