From: Jason Ish Date: Fri, 20 Aug 2021 17:31:48 +0000 (-0600) Subject: rust(lint): replace push_str of single char to push() X-Git-Tag: suricata-7.0.0-beta1~1515 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcf57ecd961e143299a60b23d150992b49d93539;p=thirdparty%2Fsuricata.git rust(lint): replace push_str of single char to push() --- diff --git a/rust/src/rdp/log.rs b/rust/src/rdp/log.rs index 14d75b86a7..f8f08f5c38 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"),