schema: FromIterator lifetime fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-02-14 11:20:48 +01:00
parent c43ac0a64c
commit 39eac6280f

View File

@ -132,10 +132,10 @@ impl FromIterator<(String, Error)> for ParameterError {
}
}
impl FromIterator<(&str, Error)> for ParameterError {
impl<'a> FromIterator<(&'a str, Error)> for ParameterError {
fn from_iter<T>(iter: T) -> Self
where
T: IntoIterator<Item = (String, Error)>,
T: IntoIterator<Item = (&'a str, Error)>,
{
let mut this = Self::new();
this.extend(iter);