Skip to content

Commit

Permalink
Merge pull request #23 from lucasmerlin/disable-index-out-of-bounds-w…
Browse files Browse the repository at this point in the history
…arning

Fix clippy lint complaining for some reason
  • Loading branch information
lucasmerlin authored May 4, 2024
2 parents 6f22e31 + af5521c commit ed660f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fancy-example/src/shared_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,21 @@ fn colors() -> Vec<Color> {
vec![
Color {
name: "Panic Purple",
#[allow(clippy::out_of_bounds_indexing)]
color: egui::hex_color!("642CA9"),
rounded: false,
index: 0,
},
Color {
name: "Generic Green",
#[allow(clippy::out_of_bounds_indexing)]
color: egui::hex_color!("2A9D8F"),
rounded: false,
index: 1,
},
Color {
name: "Ownership Orange*",
#[allow(clippy::out_of_bounds_indexing)]
color: egui::hex_color!("E9C46A"),
rounded: false,
index: 2,
Expand Down

0 comments on commit ed660f4

Please sign in to comment.