diff options
| author | mat <git@matdoes.dev> | 2024-12-28 02:10:05 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-28 02:10:05 +0000 |
| commit | 615d8f9d2ac56b3244d328587243301da253eafd (patch) | |
| tree | 3cf08428ddeb29bcb58dbce04fee7bbbe4d2814d /azalea-core/src | |
| parent | ebaf5128fbc87970b2ba1f6157e5da035ae379c8 (diff) | |
| download | azalea-drasl-615d8f9d2ac56b3244d328587243301da253eafd.tar.xz | |
bump minimum rust version and improve pathfinder docs
Diffstat (limited to 'azalea-core/src')
| -rw-r--r-- | azalea-core/src/color.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-core/src/color.rs b/azalea-core/src/color.rs index eddf5035..ff727ccd 100644 --- a/azalea-core/src/color.rs +++ b/azalea-core/src/color.rs @@ -8,7 +8,7 @@ pub struct RgbColor { impl RgbColor { pub fn new(r: u8, g: u8, b: u8) -> Self { Self { - value: (r as u32) << 16 | (g as u32) << 8 | b as u32, + value: ((r as u32) << 16) | ((g as u32) << 8) | (b as u32), } } @@ -33,7 +33,7 @@ pub struct ArgbColor { impl ArgbColor { pub fn new(a: u8, r: u8, g: u8, b: u8) -> Self { Self { - value: (a as u32) << 24 | (r as u32) << 16 | (g as u32) << 8 | b as u32, + value: ((a as u32) << 24) | ((r as u32) << 16) | ((g as u32) << 8) | b as u32, } } |
