use 'clamp' function (clippy::manual_clamp)
This commit is contained in:
parent
4b7c0ca15a
commit
d3eb8d5ad0
2 changed files with 3 additions and 3 deletions
|
|
@ -364,7 +364,7 @@ where
|
|||
|
||||
if !metadata.flags.is_empty() {
|
||||
let style_line_height =
|
||||
(self.glyph_font_size / 10.0).max(2.0).min(16.0);
|
||||
(self.glyph_font_size / 10.0).clamp(2.0, 16.0);
|
||||
|
||||
let line_color = cosmic_text_to_iced_color(metadata.underline_color);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue