Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_viewports/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ fn drag_and_drop_test(ui: &mut egui::Ui) {
}

fn insert(&mut self, container: Id, col: usize, value: impl Into<String>) {
assert!(col <= COLS, "The coll should be less then: {COLS}");
assert!(col < COLS, "The coll should be less then: {COLS}");

let value: String = value.into();
let id = Id::new(format!("%{}% {}", self.counter, &value));
Expand All @@ -355,7 +355,7 @@ fn drag_and_drop_test(ui: &mut egui::Ui) {
}

fn cols(&self, container: Id, col: usize) -> Vec<(Id, String)> {
assert!(col <= COLS, "The col should be less then: {COLS}");
assert!(col < COLS, "The col should be less then: {COLS}");
let container_data = &self.containers_data[&container];
container_data[col]
.iter()
Expand All @@ -368,7 +368,7 @@ fn drag_and_drop_test(ui: &mut egui::Ui) {
let Some(id) = self.is_dragged.take() else {
return;
};
assert!(col <= COLS, "The col should be less then: {COLS}");
assert!(col < COLS, "The col should be less then: {COLS}");

// Should be a better way to do this!
#[expect(clippy::iter_over_hash_type)]
Expand Down
Loading