summaryrefslogtreecommitdiffstats
path: root/src/file/source/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/source/string.rs')
-rw-r--r--src/file/source/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file/source/string.rs b/src/file/source/string.rs
index e1d9f64..922e46c 100644
--- a/src/file/source/string.rs
+++ b/src/file/source/string.rs
@@ -15,7 +15,7 @@ impl<'a> From<&'a str> for FileSourceString {
}
impl FileSource for FileSourceString {
- fn resolve(&self, _: Option<FileFormat>) -> Result<(Option<String>, String), Box<Error>> {
- Ok((None, self.0.clone()))
+ fn resolve(&self, format_hint: Option<FileFormat>) -> Result<(Option<String>, String, FileFormat), Box<Error>> {
+ Ok((None, self.0.clone(), format_hint.expect("from_str requires a set file format")))
}
}