(&self)
| 54 | } |
| 55 | |
| 56 | pub fn workspace_path_buf(&self) -> PathBuf { |
| 57 | self.workspace_path |
| 58 | .try_lock() |
| 59 | .ok() |
| 60 | .and_then(|guard| guard.clone()) |
| 61 | .or_else(|| std::env::current_dir().ok()) |
| 62 | .unwrap_or_else(|| PathBuf::from(".")) |
| 63 | } |
| 64 | |
| 65 | pub fn workspace_path_string(&self) -> String { |
| 66 | self.workspace_path_buf().to_string_lossy().to_string() |
no test coverage detected