Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
As this might break let's do as a separate PR
  • Loading branch information
gilescope committed Jun 1, 2021
commit c29de2802172128db70b54ab59da9e304b84a060
6 changes: 3 additions & 3 deletions client/service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pub enum BasePath {
#[cfg(not(target_os = "unknown"))]
Temporary(TempDir),
/// A path on the disk.
Permanent(PathBuf),
Permanenent(PathBuf),
}

impl BasePath {
Expand All @@ -267,7 +267,7 @@ impl BasePath {
/// Note: this function will not ensure that the directory exist nor create the directory. It
/// will also not delete the directory when the instance is dropped.
pub fn new<P: AsRef<Path>>(path: P) -> BasePath {
BasePath::Permanent(path.as_ref().to_path_buf())
BasePath::Permanenent(path.as_ref().to_path_buf())
}

/// Create a base path from values describing the project.
Expand All @@ -285,7 +285,7 @@ impl BasePath {
match self {
#[cfg(not(target_os = "unknown"))]
BasePath::Temporary(temp_dir) => temp_dir.path(),
BasePath::Permanent(path) => path.as_path(),
BasePath::Permanenent(path) => path.as_path(),
}
}

Expand Down