Skip to content

Commit

Permalink
add static bound to Pixel::Component to match HetPixel
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Aug 28, 2024
1 parent 9dbdc63 commit e9fb433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pixel_traits/pixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub trait Pixel:
HetPixel<ColorComponent = Self::Component, AlphaComponent = Self::Component>
{
/// The component type of the pixel used for both color and alpha components if any.
type Component: Copy;
type Component: Copy + 'static;

/// A generic associated type used to return the array of
/// components despite rust's lack of const generic expressions.
Expand Down

0 comments on commit e9fb433

Please sign in to comment.