mirror of https://github.com/astral-sh/uv
Use `to_string` instead of `format!`
This commit is contained in:
parent
e8a5a65c37
commit
19a2f90444
|
|
@ -568,7 +568,7 @@ impl<'a> Padded<'a, String> {
|
||||||
impl<T: std::fmt::Display> std::fmt::Display for Padded<'_, T> {
|
impl<T: std::fmt::Display> std::fmt::Display for Padded<'_, T> {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
let mut result = String::new();
|
let mut result = String::new();
|
||||||
let content = format!("{}", self.content);
|
let content = self.content.to_string();
|
||||||
|
|
||||||
if let Some(char) = content.chars().next() {
|
if let Some(char) = content.chars().next() {
|
||||||
if !char.is_whitespace() {
|
if !char.is_whitespace() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue