##// END OF EJS Templates
rust: fix non-utf8 char in requirements.rs...
marmoute -
r46570:40f79997 default
parent child Browse files
Show More
@@ -7,7 +7,7 pub enum RequirementsError {
7 Io(io::Error),
7 Io(io::Error),
8 /// The `requires` file is corrupted
8 /// The `requires` file is corrupted
9 Corrupted,
9 Corrupted,
10 /// The repository requires a feature that we dont support
10 /// The repository requires a feature that we don't support
11 Unsupported {
11 Unsupported {
12 feature: String,
12 feature: String,
13 },
13 },
@@ -55,7 +55,7 pub fn load(repo_root: &Path) -> Result<
55 pub fn check(repo_root: &Path) -> Result<(), RequirementsError> {
55 pub fn check(repo_root: &Path) -> Result<(), RequirementsError> {
56 for feature in load(repo_root)? {
56 for feature in load(repo_root)? {
57 if !SUPPORTED.contains(&&*feature) {
57 if !SUPPORTED.contains(&&*feature) {
58 return Err(RequirementsError::Unsupported { feature })
58 return Err(RequirementsError::Unsupported { feature });
59 }
59 }
60 }
60 }
61 Ok(())
61 Ok(())
General Comments 0
You need to be logged in to leave comments. Login now