diff --git a/src/sound.rs b/src/sound.rs index 5456ef4..e6b9fe9 100644 --- a/src/sound.rs +++ b/src/sound.rs @@ -38,6 +38,9 @@ impl Sound { Err(_) => None } } + else if let Ok(id) = s.parse::() { + Some(id) + } else { None }