From 006a4835be6372fb0326af5f0502d59188ab0254 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 26 Sep 2020 12:51:39 -0500 Subject: [PATCH] Eliminate a Clippy warning. --- speech-dispatcher/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }