From bcfb216b34c96d65f3fd7ec8cb4a4d9edbf1a5ba Mon Sep 17 00:00:00 2001 From: jude-lafitteIII Date: Fri, 22 May 2020 14:00:09 +0100 Subject: [PATCH] id: prefix not necessary --- src/sound.rs | 3 +++ 1 file changed, 3 insertions(+) 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 }