summaryrefslogtreecommitdiffstats
path: root/src/file/source/mod.rs
diff options
context:
space:
mode:
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>>;
}