BadURL -> BadUrl

This commit is contained in:
Eelco Dolstra 2024-01-10 23:34:15 +01:00
parent 0d5e889783
commit ffccb9bd98
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ pub enum Error {
Attic(#[from] attic::AtticError), Attic(#[from] attic::AtticError),
#[error("Bad URL")] #[error("Bad URL")]
BadURL(reqwest::Url), BadUrl(reqwest::Url),
} }
impl IntoResponse for Error { impl IntoResponse for Error {

View file

@ -53,7 +53,7 @@ pub async fn init_cache(
let flakehub_cache_server_hostname = flakehub_cache_server let flakehub_cache_server_hostname = flakehub_cache_server
.host() .host()
.ok_or_else(|| Error::BadURL(flakehub_cache_server.to_owned()))? .ok_or_else(|| Error::BadUrl(flakehub_cache_server.to_owned()))?
.to_string(); .to_string();
// Append an entry for the FlakeHub cache server to netrc. // Append an entry for the FlakeHub cache server to netrc.