on master help sign in
Make `runtime_dir` private
4a40e93Wojciech Kępka
helix-core/src/lib.rs+1−1
@@ -49,7 +49,7 @@ pub fn find_root(root: Option<&str>) -> Option<std::path::PathBuf> {
49}
49}
50
50
51#[cfg(not(embed_runtime))]
51#[cfg(not(embed_runtime))]
52−pub fn runtime_dir() -> std::path::PathBuf {
52+fn runtime_dir() -> std::path::PathBuf {
53 if let Ok(dir) = std::env::var("HELIX_RUNTIME") {
53 if let Ok(dir) = std::env::var("HELIX_RUNTIME") {
54 return dir.into();
54 return dir.into();
55 }
55 }