From ffccb9bd982d0d3d56c401be8c322f88ce6ab6cb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Jan 2024 23:34:15 +0100 Subject: [PATCH] BadURL -> BadUrl --- magic-nix-cache/src/error.rs | 2 +- magic-nix-cache/src/flakehub.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/magic-nix-cache/src/error.rs b/magic-nix-cache/src/error.rs index 98945c1..4a5d27c 100644 --- a/magic-nix-cache/src/error.rs +++ b/magic-nix-cache/src/error.rs @@ -47,7 +47,7 @@ pub enum Error { Attic(#[from] attic::AtticError), #[error("Bad URL")] - BadURL(reqwest::Url), + BadUrl(reqwest::Url), } impl IntoResponse for Error { diff --git a/magic-nix-cache/src/flakehub.rs b/magic-nix-cache/src/flakehub.rs index 19cd1b8..d1ad39c 100644 --- a/magic-nix-cache/src/flakehub.rs +++ b/magic-nix-cache/src/flakehub.rs @@ -53,7 +53,7 @@ pub async fn init_cache( let flakehub_cache_server_hostname = flakehub_cache_server .host() - .ok_or_else(|| Error::BadURL(flakehub_cache_server.to_owned()))? + .ok_or_else(|| Error::BadUrl(flakehub_cache_server.to_owned()))? .to_string(); // Append an entry for the FlakeHub cache server to netrc.