From 5a95f752d518f558fa3e47cf3a00b5fe1308e5b0 Mon Sep 17 00:00:00 2001 From: Jeb Bearer Date: Tue, 16 Aug 2022 15:21:20 -0700 Subject: [PATCH] Fix clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 904e8584..d588c4f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -685,7 +685,7 @@ pub fn check_literals(url: &Url, api: &Value, first_segment: &str) -> String { let mut typos = String::new(); let meta = &api["meta"]; let api_map = api[ROUTE.as_ref()].as_table().unwrap(); - api_map[&*first_segment][PATH.as_ref()] + api_map[first_segment][PATH.as_ref()] .as_array() .unwrap() .iter()