Merge pull request #54 from AlexApps99/rust

Added support for WIP function status
This commit is contained in:
Léo Lam 2021-08-01 12:10:23 +02:00 committed by GitHub
commit e9dfd1327c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ pub enum Status {
NonMatchingMinor,
NonMatchingMajor,
NotDecompiled,
Wip,
Library,
}
@ -51,6 +52,7 @@ fn parse_function_csv_entry(record: &csv::StringRecord) -> Result<Info> {
Some('M') => Status::NonMatchingMajor,
Some('O') => Status::Matching,
Some('U') => Status::NotDecompiled,
Some('W') => Status::Wip,
Some('L') => Status::Library,
Some(code) => bail!("unexpected status code: {}", code),
None => bail!("missing status code"),

View File

@ -79,7 +79,7 @@ fn check_function(
}
}
Status::NonMatchingMinor | Status::NonMatchingMajor => {
Status::NonMatchingMinor | Status::NonMatchingMajor | Status::Wip => {
let orig_fn = get_orig_fn()?;
let result = checker