Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PakhomovAlexander committed Jan 22, 2025
1 parent a70f793 commit 6cf8099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tui/src/components/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Component for Editor {

let mut text = String::new();
for line in &self.editor_state.lines.flatten(&Some('\n')) {
text.push_str(&line.to_string());
text.push(*line);
}
// maybe flatten?

Expand Down

0 comments on commit 6cf8099

Please sign in to comment.