Create an `InvalidPath` error for the given path. # Arguments `path` - The path that couldn't be accessed `source` - Optional underlying IO error
(path: P, source: Option<std::io::Error>)
| 458 | /// * `path` - The path that couldn't be accessed |
| 459 | /// * `source` - Optional underlying IO error |
| 460 | pub fn invalid_path<P: Into<PathBuf>>(path: P, source: Option<std::io::Error>) -> Self { |
| 461 | Self::InvalidPath { |
| 462 | path: path.into(), |
| 463 | source, |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | /// Create a `RepositoryNotFound` error for the given path. |
| 468 | pub fn repository_not_found<P: Into<PathBuf>>(path: P) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected