Minor rename of DataError::Bail.
This commit is contained in:
parent
44ebe46f10
commit
7eec01a52e
@ -37,7 +37,7 @@ pub enum DataError {
|
|||||||
// Rss::Error is not yet Sync
|
// Rss::Error is not yet Sync
|
||||||
RssCrateError(String),
|
RssCrateError(String),
|
||||||
#[fail(display = "Error: {}", _0)]
|
#[fail(display = "Error: {}", _0)]
|
||||||
DiscountBail(String),
|
Bail(String),
|
||||||
#[fail(display = "Request to {} returned {}. Context: {}", url, status_code, context)]
|
#[fail(display = "Request to {} returned {}. Context: {}", url, status_code, context)]
|
||||||
HttpStatusError {
|
HttpStatusError {
|
||||||
url: String,
|
url: String,
|
||||||
@ -102,6 +102,6 @@ impl From<io::Error> for DataError {
|
|||||||
|
|
||||||
impl From<String> for DataError {
|
impl From<String> for DataError {
|
||||||
fn from(err: String) -> Self {
|
fn from(err: String) -> Self {
|
||||||
DataError::DiscountBail(err)
|
DataError::Bail(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user