add linting CI jobs
This commit is contained in:
parent
9974b2f99f
commit
aa2d9fe374
12 changed files with 98 additions and 68 deletions
|
|
@ -336,9 +336,7 @@ fn index_in_list(
|
|||
}
|
||||
let total_len = list_len as f32 * (item_size + divider_size) - divider_size;
|
||||
let pos_in_list = pos_in_list * total_len;
|
||||
let index = if list_len == 0 {
|
||||
0
|
||||
} else if pos_in_list < item_size / 2.0 {
|
||||
let index = if (list_len == 0) || (pos_in_list < item_size / 2.0) {
|
||||
0
|
||||
} else {
|
||||
let mut i = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue