-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to actix v1 and ipfs-api v0.5.2
- Loading branch information
Showing
8 changed files
with
1,134 additions
and
1,065 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
use failure::Fail; | ||
|
||
use git_lfs_spec::transfer::custom; | ||
|
||
#[derive(Fail, Debug)] | ||
#[derive(Display, Debug)] | ||
pub enum CliError { | ||
#[fail(display = "{}", _0)] | ||
SerdeJsonError(#[cause] serde_json::error::Error), | ||
#[fail(display = "{}", _0)] | ||
Io(#[cause] std::io::Error), | ||
#[fail(display = "Input was an unexpected event {:?}", _0)] | ||
#[display(fmt = "{}", _0)] | ||
SerdeJsonError(serde_json::error::Error), | ||
#[display(fmt = "{}", _0)] | ||
Io(std::io::Error), | ||
#[display(fmt = "Input was an unexpected event {:?}", _0)] | ||
UnexpectedEvent(custom::Event), | ||
#[fail(display = "Error with a request to the IPFS API {:?}", _0)] | ||
IpfsApiError(ipfs_api::response::Error), | ||
// TODO: Actix developers made the Actix error !Send + !Sync. Once this is handled in rust-ipfs-api, can restore the error here. | ||
#[display(fmt = "Error with a request to the IPFS API {:?}", _0)] | ||
IpfsApiError(String), | ||
} |
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
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