diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2017-06-22 14:14:29 -0700 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2017-06-22 14:30:51 -0700 |
commit | 2b438ed9b53fee5689032f3b5fcdda8d15becd5f (patch) | |
tree | 48374e66a6594c7d11d19fe38f7e23df731b52be /src/file/source/mod.rs | |
parent | 04d3ee8f70337e4899932b92262fbeec2dbb1bd9 (diff) |
Add builder API to Config
Diffstat (limited to 'src/file/source/mod.rs')
-rw-r--r-- | src/file/source/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/file/source/mod.rs b/src/file/source/mod.rs index 89f1a3c..67e2cf1 100644 --- a/src/file/source/mod.rs +++ b/src/file/source/mod.rs @@ -1,12 +1,15 @@ pub mod file; pub mod string; +use std::fmt::Debug; use std::error::Error; use source::Source; use super::FileFormat; /// Describes where the file is sourced -pub trait FileSource { - fn resolve(&self, format_hint: Option<FileFormat>) -> Result<(Option<String>, String, FileFormat), Box<Error>>; +pub trait FileSource: Debug + Clone { + fn resolve(&self, + format_hint: Option<FileFormat>) + -> Result<(Option<String>, String, FileFormat), Box<Error>>; } |