From 39eac6280feb857588c4e40ee4bc22bbae19ff01 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 14 Feb 2022 11:20:48 +0100 Subject: [PATCH] schema: FromIterator lifetime fixup Signed-off-by: Wolfgang Bumiller --- proxmox-schema/src/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-schema/src/schema.rs b/proxmox-schema/src/schema.rs index d073f369..44c56e77 100644 --- a/proxmox-schema/src/schema.rs +++ b/proxmox-schema/src/schema.rs @@ -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(iter: T) -> Self where - T: IntoIterator, + T: IntoIterator, { let mut this = Self::new(); this.extend(iter);