From 85b8f1b7cbd9d458adadd2dc3fc4d22929142799 Mon Sep 17 00:00:00 2001 From: Valkum Date: Mon, 22 Feb 2021 19:45:27 +0100 Subject: [PATCH] Fix clippy::single_char_pattern --- src/appservice_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appservice_server.rs b/src/appservice_server.rs index 986909b..04f14c0 100644 --- a/src/appservice_server.rs +++ b/src/appservice_server.rs @@ -25,7 +25,7 @@ where let mut parts = http_request.uri().clone().into_parts(); let old_path_and_query = parts.path_and_query.unwrap().as_str().to_owned(); - let symbol = if old_path_and_query.contains("?") { + let symbol = if old_path_and_query.contains('?') { "&" } else { "?"