From 57fb2610ad274dff1d2f2e4d43dfce05ca9c4835 Mon Sep 17 00:00:00 2001 From: Federico Pasqua Date: Sat, 14 Mar 2020 15:46:36 +0100 Subject: General upgrade for clippy fix and remove of deprecated methods for errors --- src/source.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/source.rs') diff --git a/src/source.rs b/src/source.rs index e4c4972..4d1ba53 100644 --- a/src/source.rs +++ b/src/source.rs @@ -7,7 +7,7 @@ use value::{Value, ValueKind}; /// Describes a generic _source_ of configuration properties. pub trait Source: Debug { - fn clone_into_box(&self) -> Box; + fn clone_into_box(&self) -> Box; /// Collect all configuration properties available from this source and return /// a HashMap. @@ -35,14 +35,14 @@ pub trait Source: Debug { } } -impl Clone for Box { - fn clone(&self) -> Box { +impl Clone for Box { + fn clone(&self) -> Box { self.clone_into_box() } } -impl Source for Vec> { - fn clone_into_box(&self) -> Box { +impl Source for Vec> { + fn clone_into_box(&self) -> Box { Box::new((*self).clone()) } @@ -67,7 +67,7 @@ where T: Clone, T: 'static, { - fn clone_into_box(&self) -> Box { + fn clone_into_box(&self) -> Box { Box::new((*self).clone()) } -- cgit v1.2.3