Show More
@@ -7,7 +7,7 pub enum RequirementsError { | |||
|
7 | 7 | Io(io::Error), |
|
8 | 8 | /// The `requires` file is corrupted |
|
9 | 9 | Corrupted, |
|
10 |
/// The repository requires a feature that we don |
|
|
10 | /// The repository requires a feature that we don't support | |
|
11 | 11 | Unsupported { |
|
12 | 12 | feature: String, |
|
13 | 13 | }, |
@@ -55,7 +55,7 pub fn load(repo_root: &Path) -> Result< | |||
|
55 | 55 | pub fn check(repo_root: &Path) -> Result<(), RequirementsError> { |
|
56 | 56 | for feature in load(repo_root)? { |
|
57 | 57 | if !SUPPORTED.contains(&&*feature) { |
|
58 | return Err(RequirementsError::Unsupported { feature }) | |
|
58 | return Err(RequirementsError::Unsupported { feature }); | |
|
59 | 59 | } |
|
60 | 60 | } |
|
61 | 61 | Ok(()) |
General Comments 0
You need to be logged in to leave comments.
Login now