mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-20 16:21:04 +02:00
refactor: fix some strict clippy warnings
This commit is contained in:
parent
bd9b3af5bc
commit
ca524f19f6
13 changed files with 28 additions and 33 deletions
|
@ -14,10 +14,9 @@ pub struct Pagination {
|
|||
}
|
||||
|
||||
pub struct IconContext<'a> {
|
||||
pub icon_back: &'a str,
|
||||
pub icon_fwd: &'a str,
|
||||
pub icon_size: i32,
|
||||
pub icon_theme: &'a IconTheme,
|
||||
pub back: &'a str,
|
||||
pub fwd: &'a str,
|
||||
pub size: i32,
|
||||
}
|
||||
|
||||
impl Pagination {
|
||||
|
@ -86,8 +85,8 @@ impl Pagination {
|
|||
if page_size < *offset {
|
||||
*offset -= page_size;
|
||||
} else {
|
||||
*offset = 1
|
||||
};
|
||||
*offset = 1;
|
||||
}
|
||||
|
||||
Self::update_page(&container, *offset, page_size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue