Use `to_string` instead of `format!`

This commit is contained in:
Zanie 2024-01-09 23:20:54 -06:00
parent e8a5a65c37
commit 19a2f90444
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ impl<'a> Padded<'a, String> {
impl<T: std::fmt::Display> std::fmt::Display for Padded<'_, T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut result = String::new();
let content = format!("{}", self.content);
let content = self.content.to_string();
if let Some(char) = content.chars().next() {
if !char.is_whitespace() {