()
| 17 | |
| 18 | impl DaemonClientIdentity { |
| 19 | pub fn current() -> Result<Self> { |
| 20 | let profile_root = |
| 21 | crate::config::user_data_dir().ok_or_else(|| TraceDecayError::Config { |
| 22 | message: "could not determine TraceDecay user data directory".to_string(), |
| 23 | })?; |
| 24 | let global_db_path = |
| 25 | crate::global_db::global_db_path().ok_or_else(|| TraceDecayError::Config { |
| 26 | message: "could not determine TraceDecay global database path".to_string(), |
| 27 | })?; |
| 28 | Ok(Self { |
| 29 | profile_root, |
| 30 | global_db_path, |
| 31 | }) |
| 32 | } |
| 33 | } |
no test coverage detected