(project_dir: impl AsRef<Path>)
| 483 | } |
| 484 | |
| 485 | pub fn from_project_dir(project_dir: impl AsRef<Path>) -> Self { |
| 486 | match load_config(project_dir) { |
| 487 | Ok(config) => Self::from_config(&config), |
| 488 | Err(_) => Self::new(), |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | fn apply_config(&mut self, config: &LoadedConfig) { |
| 493 | if let Some(mode_configs) = &config.mode { |
nothing calls this directly
no test coverage detected