From 932b792e8028cf50e52b267c8f8c2ea1242b6ece Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 21 Oct 2024 20:12:57 -0300 Subject: [PATCH] clippy --- zebra-rpc/src/server/cookie.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-rpc/src/server/cookie.rs b/zebra-rpc/src/server/cookie.rs index e287865c7b2..a90961d6448 100644 --- a/zebra-rpc/src/server/cookie.rs +++ b/zebra-rpc/src/server/cookie.rs @@ -36,7 +36,7 @@ impl Default for Cookie { /// Writes the given cookie to the given dir. pub fn write_to_disk(cookie: &Cookie, dir: &Path) -> Result<()> { // Create the directory if needed. - std::fs::create_dir_all(&dir)?; + std::fs::create_dir_all(dir)?; File::create(dir.join(FILE))?.write_all(format!("__cookie__:{}", cookie.0).as_bytes())?; tracing::info!("RPC auth cookie written to disk");