Skip to content

Commit

Permalink
Fix clippy::precedence lint (#776)
Browse files Browse the repository at this point in the history
waywardmonkeys authored Dec 29, 2024

Verified

This commit was signed with the committer’s verified signature.
abnegate Jake Barnby
1 parent 750bf07 commit 3c4688d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vello_encoding/src/draw.rs
Original file line number Diff line number Diff line change
@@ -196,7 +196,7 @@ impl DrawBeginClip {
/// Creates new clip draw data.
pub fn new(blend_mode: BlendMode, alpha: f32) -> Self {
Self {
blend_mode: (blend_mode.mix as u32) << 8 | blend_mode.compose as u32,
blend_mode: ((blend_mode.mix as u32) << 8) | blend_mode.compose as u32,
alpha,
}
}

0 comments on commit 3c4688d

Please sign in to comment.