diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-06-23 09:55:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 09:55:16 -0700 |
commit | 21cf8d83cb840e5e8d1f7eb76b9cd1cf984c7444 (patch) | |
tree | cadd5bdf6f9aaa4397b9310f0de1e84782c6abc9 /src/file/source/string.rs | |
parent | f4fad94a58c2eef5e1e49b4f2b150eac0efbd360 (diff) | |
parent | 6c1d3807560dd2d177096118f8cce03933511685 (diff) |
Merge pull request #37 from Jascha-N/boxed-error-send-sync
Make boxed errors Send + Sync
Diffstat (limited to 'src/file/source/string.rs')
-rw-r--r-- | src/file/source/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file/source/string.rs b/src/file/source/string.rs index 70101d6..5dbd1b9 100644 --- a/src/file/source/string.rs +++ b/src/file/source/string.rs @@ -18,7 +18,7 @@ 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>> { + -> Result<(Option<String>, String, FileFormat), Box<Error + Send + Sync>> { Ok((None, self.0.clone(), format_hint.expect("from_str requires a set file format"))) } } |