Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalKrill committed Jul 4, 2024
1 parent 17e3e64 commit de4eb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_text/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ fn buffer_dimensions(buffer: &Buffer) -> Vec2 {
let width = buffer
.layout_runs()
.map(|run| run.line_w)
.reduce(|max_w, w| max_w.max(w))
.reduce(f32::max)
.unwrap_or(0.0);
let line_height = buffer.metrics().line_height.ceil();
let height = buffer.layout_runs().count() as f32 * line_height;
Expand Down

0 comments on commit de4eb09

Please sign in to comment.