Skip to content

Commit

Permalink
Remove a redundant ampersand
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Jan 23, 2025
1 parent edc49d2 commit ef6707a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/texture/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ impl<'a> TexturePool<'a> {
fn get_point_and_surface_size_for_initial_font(initial_font: &ttf::Font,
text_display_info: &text::TextDisplayInfo) -> GenericResult<(FontPointSize, (u32, u32))> {

let initial_output_size = initial_font.size_of(&text_display_info.text.inner())?;
let initial_output_size = initial_font.size_of(text_display_info.text.inner())?;

let height_ratio_from_expected_size = text_display_info.pixel_area.1 as f64 / initial_output_size.1 as f64;
let adjusted_point_size = Self::INITIAL_POINT_SIZE as f64 * height_ratio_from_expected_size;
Expand Down

0 comments on commit ef6707a

Please sign in to comment.