Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit 2b56952

Browse files
committed
refactor: ignore the clippy lint reversed_empty_ranges
1 parent fb1a4b9 commit 2b56952

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tcw3/pal/src/swrast/binner.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ pub(super) struct ClipPlanes {
127127

128128
impl Default for ClipPlanes {
129129
fn default() -> Self {
130+
#[allow(clippy::reversed_empty_ranges)]
130131
Self {
131132
n: [0, 0].into(),
132133
d: 0..0,

tcw3/src/ui/views/table.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ impl Default for Table {
494494
impl Table {
495495
/// Construct a table view widget.
496496
pub fn new() -> Self {
497+
#[allow(clippy::reversed_empty_ranges)]
497498
let inner = Inner {
498499
state: RefCell::new(State {
499500
model_query: Box::new(()),

tcw3/src/ui/views/table/update.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ impl Inner {
129129
}
130130

131131
// Calculate the range of visible lines
132+
#[allow(clippy::reversed_empty_ranges)]
132133
let mut new_cells_ranges = [0..0, 0..0];
133134
for &ty in &[LineTy::Col, LineTy::Row] {
134135
let size = self.size.get()[ty.i()];

0 commit comments

Comments
 (0)