cargo fmt, clippy

This commit is contained in:
Vinzenz Schroeter 2024-05-17 23:56:20 +02:00
parent 46c9174d3d
commit 314bec36f3
5 changed files with 127 additions and 58 deletions

View file

@ -24,10 +24,7 @@ fn main() {
connection.send(Command::Clear.into()).unwrap();
}
let max_width = cli.text.iter()
.map(|t| t.len())
.max()
.unwrap();
let max_width = cli.text.iter().map(|t| t.len()).max().unwrap();
let mut chars = ByteGrid::new(max_width, cli.text.len());
for y in 0..cli.text.len() {