From 8d3290fa60f0f07f51608283c3b63a7f19fcff79 Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Thu, 6 Jun 2024 15:30:47 +0100 Subject: [PATCH] Minor rename --- side-node/src/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/side-node/src/init.rs b/side-node/src/init.rs index 2a28d24..933dca0 100644 --- a/side-node/src/init.rs +++ b/side-node/src/init.rs @@ -12,7 +12,7 @@ const KEY_FILE: &str = "keys.pem"; const CONFIG_FILE: &str = "config.toml"; pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> { - ensure_directory_exists(&home)?; + ensure_side_directory_exists(&home)?; let (key_path, config_path) = side_path(home.clone()); @@ -26,7 +26,7 @@ pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> { /// Ensures that the directory at side_dir exists, so we have a place /// to store our key file and config file. -fn ensure_directory_exists(side_dir: &PathBuf) -> Result<(), std::io::Error> { +fn ensure_side_directory_exists(side_dir: &PathBuf) -> Result<(), std::io::Error> { if side_dir.exists() { return Ok(()); }