Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arewerage committed Dec 29, 2022
1 parent 99085f2 commit 105ac16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ impl Color {
/// ```
///
pub fn hex<T: AsRef<str>>(hex: T) -> Result<Color, HexColorError> {
let hex = hex.as_ref().replace("#", "");
let hex = hex.as_ref().replace('#', '');

// RGB
if hex.len() == 3 {
Expand Down

0 comments on commit 105ac16

Please sign in to comment.