From dcf57ecd961e143299a60b23d150992b49d93539 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 20 Aug 2021 11:31:48 -0600 Subject: [PATCH] rust(lint): replace push_str of single char to push() --- rust/src/rdp/log.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/rdp/log.rs b/rust/src/rdp/log.rs index 14d75b86a..f8f08f5c3 100644 --- a/rust/src/rdp/log.rs +++ b/rust/src/rdp/log.rs @@ -381,8 +381,8 @@ fn mcs_req_to_json(mcs: &McsConnectRequest, js: &mut JsonBuilder) -> Result<(), fn version_to_string<'a>(ver: &RdpClientVersion, prefix: &'a str) -> String { let mut result = String::from(prefix); match ver { - RdpClientVersion::V4 => result.push_str("4"), - RdpClientVersion::V5_V8_1 => result.push_str("5"), + RdpClientVersion::V4 => result.push('4'), + RdpClientVersion::V5_V8_1 => result.push('5'), RdpClientVersion::V10_0 => result.push_str("10.0"), RdpClientVersion::V10_1 => result.push_str("10.1"), RdpClientVersion::V10_2 => result.push_str("10.2"), -- 2.47.3