mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
Apply consistent formatting with cargo-fmt
This commit is contained in:
+1
-3
@@ -50,7 +50,6 @@ impl From<xdg::BaseDirectoriesError> for ConfigError {
|
||||
/// An error related to the communication with the registry API.
|
||||
#[derive(Error, Debug)]
|
||||
pub enum ApiError {
|
||||
|
||||
/// Error parsing a URL
|
||||
#[error(transparent)]
|
||||
UrlParseError(#[from] url::ParseError),
|
||||
@@ -64,8 +63,7 @@ pub enum ApiError {
|
||||
}
|
||||
|
||||
impl From<reqwest::header::ToStrError> for ApiError {
|
||||
|
||||
fn from(other: reqwest::header::ToStrError) -> Self {
|
||||
Self::ResponseHeaderParseError(Box::from(other))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user