diff --git a/speech-dispatcher/src/lib.rs b/speech-dispatcher/src/lib.rs index 26ba271..d3353ae 100644 --- a/speech-dispatcher/src/lib.rs +++ b/speech-dispatcher/src/lib.rs @@ -217,7 +217,7 @@ impl Connection { if let Some(client_id) = client_id { let client_id: Vec<&str> = client_id.split("-").collect(); if let Some(client_id) = client_id.get(1) { - if let Some(client_id) = client_id.parse::().ok() { + if let Ok(client_id) = client_id.parse::() { self.1 = client_id; } }