Skip to content

Commit

Permalink
unnecessary String
Browse files Browse the repository at this point in the history
  • Loading branch information
panekj committed May 13, 2024
1 parent 5243902 commit 7459d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor-core/src/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub struct Buffer {

impl Display for Buffer {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(&self.text().to_string())
write!(f, "{}", self.text())
}
}

Expand Down

0 comments on commit 7459d7b

Please sign in to comment.