From 2f7b0872ead89d0fca5cdf16cfb41d8a2eecd3be Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 15 Jan 2021 14:20:55 +0100 Subject: [PATCH] clippy fixups Signed-off-by: Wolfgang Bumiller --- proxmox/src/api/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox/src/api/schema.rs b/proxmox/src/api/schema.rs index c2cc61e0..be525874 100644 --- a/proxmox/src/api/schema.rs +++ b/proxmox/src/api/schema.rs @@ -532,7 +532,7 @@ impl ObjectSchemaType for ObjectSchema { } fn properties(&self) -> Self::PropertyIter { - self.properties.into_iter() + self.properties.iter() } fn additional_properties(&self) -> bool { @@ -553,7 +553,7 @@ impl ObjectSchemaType for AllOfSchema { fn properties(&self) -> Self::PropertyIter { AllOfProperties { - schemas: self.list.into_iter(), + schemas: self.list.iter(), properties: None, } }