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/file.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/file.rs')
-rw-r--r-- | src/file/source/file.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file/source/file.rs b/src/file/source/file.rs index 790933f..7bf29be 100644 --- a/src/file/source/file.rs +++ b/src/file/source/file.rs @@ -26,7 +26,7 @@ impl FileSourceFile { fn find_file(&self, format_hint: Option<FileFormat>) - -> Result<(PathBuf, FileFormat), Box<Error>> { + -> Result<(PathBuf, FileFormat), Box<Error + Send + Sync>> { // First check for an _exact_ match let mut filename = env::current_dir()?.as_path().join(self.name.clone()); if filename.is_file() { @@ -83,7 +83,7 @@ impl FileSourceFile { impl FileSource for FileSourceFile { fn resolve(&self, format_hint: Option<FileFormat>) - -> Result<(Option<String>, String, FileFormat), Box<Error>> { + -> Result<(Option<String>, String, FileFormat), Box<Error + Send + Sync>> { // Find file let (filename, format) = self.find_file(format_hint)?; |