From e29748b255ce97dfe9b4efcfbc4d9bcb3d694b97 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sun, 12 Feb 2017 11:04:30 -0800 Subject: Decorate Box with Send + Sync --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 403f566..ad4cda2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -29,7 +29,7 @@ enum ConfigStore { overrides: HashMap, // Ordered list of sources - sources: Vec>, + sources: Vec>, }, // TODO: Will be used for frozen configuratino soon @@ -213,7 +213,7 @@ fn path_set_str(root: &mut HashMap, key: &str, value: &Value) { impl ConfigStore { fn merge(&mut self, source: T) -> Result<(), Box> - where T: SourceBuilder + where T: SourceBuilder + Send + Sync { if let ConfigStore::Mutable { ref mut sources, .. } = *self { sources.push(source.build()?); @@ -285,7 +285,7 @@ impl Config { /// Merge in configuration values from the given source. pub fn merge(&mut self, source: T) -> Result<(), Box> - where T: SourceBuilder + where T: SourceBuilder + Send + Sync { self.store.merge(source)?; self.refresh()?; -- cgit v1.2.3