summaryrefslogtreecommitdiffstats
path: root/src/file/source/string.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-07-30 13:20:36 -0700
committerRyan Leckey <leckey.ryan@gmail.com>2017-07-30 13:20:36 -0700
commit14224be23dc2f253a240b85214927d97e1160669 (patch)
tree6f5b02b26aef5cf37bb14f32b9048165b67109ce /src/file/source/string.rs
parent71f4b182d1e56febda64bd620ae0e0f65de333cd (diff)
Remove ConfigResult; close #36
Diffstat (limited to 'src/file/source/string.rs')
-rw-r--r--src/file/source/string.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/file/source/string.rs b/src/file/source/string.rs
index 5dbd1b9..9c89231 100644
--- a/src/file/source/string.rs
+++ b/src/file/source/string.rs
@@ -3,7 +3,7 @@ use std::result;
use std::error::Error;
use source::Source;
-use super::{FileSource, FileFormat};
+use super::{FileFormat, FileSource};
/// Describes a file sourced from a string
#[derive(Clone, Debug)]
@@ -16,9 +16,14 @@ impl<'a> From<&'a str> for FileSourceString {
}
impl FileSource for FileSourceString {
- fn resolve(&self,
- format_hint: Option<FileFormat>)
- -> Result<(Option<String>, String, FileFormat), Box<Error + Send + Sync>> {
- Ok((None, self.0.clone(), format_hint.expect("from_str requires a set file format")))
+ fn resolve(
+ &self,
+ format_hint: Option<FileFormat>,
+ ) -> Result<(Option<String>, String, FileFormat), Box<Error + Send + Sync>> {
+ Ok((
+ None,
+ self.0.clone(),
+ format_hint.expect("from_str requires a set file format"),
+ ))
}
}