summaryrefslogtreecommitdiffstats
path: root/src/file/source/mod.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-22 14:14:29 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-22 14:30:51 -0700
commit2b438ed9b53fee5689032f3b5fcdda8d15becd5f (patch)
tree48374e66a6594c7d11d19fe38f7e23df731b52be /src/file/source/mod.rs
parent04d3ee8f70337e4899932b92262fbeec2dbb1bd9 (diff)
Add builder API to Config
Diffstat (limited to 'src/file/source/mod.rs')
-rw-r--r--src/file/source/mod.rs7
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>>;
}