(config: Option<&LoadedConfig>)
| 476 | } |
| 477 | |
| 478 | pub fn from_optional_config(config: Option<&LoadedConfig>) -> Self { |
| 479 | if let Some(config) = config { |
| 480 | return Self::from_config(config); |
| 481 | } |
| 482 | Self::new() |
| 483 | } |
| 484 | |
| 485 | pub fn from_project_dir(project_dir: impl AsRef<Path>) -> Self { |
| 486 | match load_config(project_dir) { |
nothing calls this directly
no test coverage detected