()
| 234 | } |
| 235 | |
| 236 | fn tracedecay_data_dir() -> Result<PathBuf> { |
| 237 | crate::config::user_data_dir().ok_or_else(|| TraceDecayError::Config { |
| 238 | message: "could not determine TraceDecay user data directory".to_string(), |
| 239 | }) |
| 240 | } |
| 241 | |
| 242 | pub fn default_socket_path() -> Result<PathBuf> { |
| 243 | if let Some(path) = std::env::var_os(SOCKET_ENV).filter(|path| !path.is_empty()) { |
no test coverage detected