Skip to content

Commit

Permalink
cargo update colcon
Browse files Browse the repository at this point in the history
  • Loading branch information
Beinsezii committed Jun 18, 2024
1 parent 177ae63 commit 8f30318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl std::fmt::Display for Item {
}

fn parse_color(s: &str) -> Result<Color32, String> {
colcon::str2space(s, Space::LRGB)
colcon::str2space::<f32, 3>(s, Space::LRGB)
.map(|rgb| Color32::from(Rgba::from_rgb(rgb[0], rgb[1], rgb[2])))
.ok_or_else(|| String::from("Could not parse \"") + s + "\" as a color.")
}
Expand Down

0 comments on commit 8f30318

Please sign in to comment.