Minor rename

This commit is contained in:
Dave Hrycyszyn
2024-06-06 15:30:47 +01:00
parent 91293296fb
commit 8d3290fa60

View File

@@ -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(());
}