id: prefix not necessary

This commit is contained in:
jude-lafitteIII 2020-05-22 14:00:09 +01:00
parent 010390b95f
commit bcfb216b34

View File

@ -38,6 +38,9 @@ impl Sound {
Err(_) => None
}
}
else if let Ok(id) = s.parse::<u32>() {
Some(id)
}
else {
None
}