From 87cd892c049e479fa90ef31462aedac2706da47b Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 15 Dec 2024 15:37:44 +0100 Subject: [PATCH] fix: clippy --- src/kb_data_source.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kb_data_source.rs b/src/kb_data_source.rs index d8d3d5d..f60c0c3 100644 --- a/src/kb_data_source.rs +++ b/src/kb_data_source.rs @@ -135,10 +135,7 @@ impl KBDataSource { .set("Authorization", token.as_str()) .call() { - Ok(resp) => match resp.into_json() { - Ok(val) => val, - Err(_) => None, - }, + Ok(resp) => resp.into_json().unwrap_or_default(), Err(_) => None, }; }