Apply consistent formatting with cargo-fmt

This commit is contained in:
Anthony Oteri
2023-09-13 21:45:37 -04:00
parent 74b2f87e51
commit 957b0bb2cc
5 changed files with 17 additions and 15 deletions
+1 -3
View File
@@ -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))
}
}
}