From bd3d0fa01bf82f0314f9614697497d7ca54e6385 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 2 Nov 2021 22:36:06 -0700 Subject: [PATCH] Fix missing fmt argument in error message --- src/resources.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/resources.rs b/src/resources.rs index a0e364a4..de6fe144 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -157,7 +157,10 @@ pub fn read_url(url: &Url, access: ResourceAccess) -> Result> { Err(_) => Err(anyhow!("Cannot convert URL {} to file path", url)), }, "http" | "https" => fetch_http(url), - _ => Err(anyhow!("Cannot read from URL {}, protocol not supported")), + _ => Err(anyhow!( + "Cannot read from URL {}, protocol not supported", + url, + )), } }