diff options
author | Joel Gallant <joel@joelgallant.me> | 2020-09-03 12:06:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 12:06:08 -0600 |
commit | 436c964037a1833fe6d17eda37e25425af7e9760 (patch) | |
tree | 5e6468c43f2f06fca2a338839a3d7a80e4d67d49 /src/source.rs | |
parent | 2c0b201055be60ec45e258adcc6c4b6e01bcd627 (diff) | |
parent | e84a39949c0c1625c1886b8f718b8165c7a8e831 (diff) |
Merge pull request #134 from eisterman/fix_clippy_warnings
Fix of all the clippy warnings and removing of deprecated Error::description method
Diffstat (limited to 'src/source.rs')
-rw-r--r-- | src/source.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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<Source + Send + Sync>; + fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>; /// Collect all configuration properties available from this source and return /// a HashMap. @@ -35,14 +35,14 @@ pub trait Source: Debug { } } -impl Clone for Box<Source + Send + Sync> { - fn clone(&self) -> Box<Source + Send + Sync> { +impl Clone for Box<dyn Source + Send + Sync> { + fn clone(&self) -> Box<dyn Source + Send + Sync> { self.clone_into_box() } } -impl Source for Vec<Box<Source + Send + Sync>> { - fn clone_into_box(&self) -> Box<Source + Send + Sync> { +impl Source for Vec<Box<dyn Source + Send + Sync>> { + fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> { Box::new((*self).clone()) } @@ -67,7 +67,7 @@ where T: Clone, T: 'static, { - fn clone_into_box(&self) -> Box<Source + Send + Sync> { + fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> { Box::new((*self).clone()) } |