From 8a602995fa71bee009c0ab1e67b78828a731ca75 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 9 Feb 2023 11:44:14 +0900 Subject: Address new clippy lints --- helix-term/src/commands/typed.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'helix-term/src/commands/typed.rs') diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 1fd11b65..0cc1b743 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1,3 +1,4 @@ +use std::fmt::Write; use std::ops::Deref; use crate::job::Job; @@ -1103,7 +1104,7 @@ fn get_character_info( codepoint }; - unicode.push_str(&format!("{codepoint:0>4x}")); + write!(unicode, "{codepoint:0>4x}").unwrap(); } unicode.push(')'); @@ -1144,7 +1145,7 @@ fn get_character_info( } for byte in &bytes[current_byte..] { - hex.push_str(&format!(" {byte:0>2x}")); + write!(hex, " {byte:0>2x}").unwrap(); } current_byte = bytes.len(); -- cgit v1.2.3-70-g09d2