Bugfix in interpreting Sex value
This commit is contained in:
parent
c8a742e8d0
commit
610478695f
1 changed files with 3 additions and 3 deletions
|
@ -167,9 +167,9 @@ impl Sex {
|
|||
impl From<u8> for Sex {
|
||||
fn from(s: u8) -> Self {
|
||||
match s {
|
||||
31 => Sex::Male,
|
||||
32 => Sex::Female,
|
||||
39 => Sex::NotApplicable,
|
||||
0x31 => Sex::Male,
|
||||
0x32 => Sex::Female,
|
||||
0x39 => Sex::NotApplicable,
|
||||
_ => Sex::NotKnown,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue