From b41211dc24f504514992daeeb2217976f04982df Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 24 Feb 2024 10:12:54 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Cole Helbling --- magic-nix-cache/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magic-nix-cache/src/main.rs b/magic-nix-cache/src/main.rs index 12f6bb9..4d59d57 100644 --- a/magic-nix-cache/src/main.rs +++ b/magic-nix-cache/src/main.rs @@ -328,7 +328,7 @@ async fn main_cli() -> Result<()> { Err(anyhow!( "Startup notification returned an error: {}\n{}", response.status(), - response.text().await.unwrap_or_else(|_| "".to_owned()) + response.text().await.unwrap_or_else(|_| "".to_owned()) ))?; } } @@ -386,7 +386,7 @@ async fn post_build_hook(out_paths: &str) -> Result<()> { Ok(response) if !response.status().is_success() => Err(anyhow!( "magic-nix-cache server failed to enqueue the push request: {}\n{}", response.status(), - response.text().await.unwrap_or_else(|_| "".to_owned()), + response.text().await.unwrap_or_else(|_| "".to_owned()), ))?, Ok(response) => response .json::()