Skip to content

Commit 1056b8b

Browse files
committed
clippy fix
1 parent 39171cc commit 1056b8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/tile/elm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub fn view(tile: &Tile, wid: window::Id) -> Element<'_, Message> {
153153
let height = match tile.page {
154154
Page::ClipboardHistory | Page::Settings => 385,
155155
// Height of each emoji is EMOJI_HEIGHT + 20 for padding
156-
Page::EmojiSearch => std::cmp::min(((tile.results.len() + 6 - 1) / 6) * 90, 290),
156+
Page::EmojiSearch => std::cmp::min(tile.results.len().div_ceil(6) * 90, 290),
157157
_ => std::cmp::min(tile.results.len() * 60, 290),
158158
};
159159

0 commit comments

Comments
 (0)