-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplifying get_container_engine() call
- Changing the get_container_engine() call to use Result<> instead of Option<> and using combinators rather than ifs. - Added which::Error to the list of errors in the error_chain. This also required disabling the default features of which which uses failure by default rather than std::error::Error.
- Loading branch information
Showing
4 changed files
with
9 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ use error_chain::error_chain; | |
error_chain! { | ||
foreign_links { | ||
Io(std::io::Error); | ||
Which(which::Error); | ||
} | ||
} |