Skip to content

Commit

Permalink
Satisfy latest clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Jul 13, 2024
1 parent efdaffb commit 17fd59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piet-web/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ impl WebTextLayout {
// various functions like `text_width` are stateful, and require
// the context to be configured correcttly.
self.ctx.set_font(&self.font.get_font_string());
let new_width = new_width.into().unwrap_or(std::f64::INFINITY);
let new_width = new_width.into().unwrap_or(f64::INFINITY);
let mut line_metrics =
lines::calculate_line_metrics(&self.text, &self.ctx, new_width, self.font.size);

Expand Down

0 comments on commit 17fd59f

Please sign in to comment.