backout of commit 402f7ea649

rgb crate has eben fixed upstream, remove the temporary work-around again.
This commit is contained in:
Tobias Hunger 2024-07-08 14:42:40 +02:00 committed by Tobias Hunger
parent 0be2d4521e
commit e74745c68a
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ once_cell = { version = "1.5", default-features = false, features = ["critical-s
pin-project = "1" pin-project = "1"
pin-weak = { version = "1.1", default-features = false } pin-weak = { version = "1.1", default-features = false }
# Note: the rgb version is extracted in ci.yaml for rustdoc builds # Note: the rgb version is extracted in ci.yaml for rustdoc builds
rgb = "0.8.42" rgb = "0.8.27"
scoped-tls-hkt = { version = "0.1", optional = true } scoped-tls-hkt = { version = "0.1", optional = true }
scopeguard = { version = "1.1.0", default-features = false } scopeguard = { version = "1.1.0", default-features = false }
slab = { version = "0.4.3", default-features = false } slab = { version = "0.4.3", default-features = false }

View file

@ -91,7 +91,7 @@ impl<Pixel: Clone> SharedPixelBuffer<Pixel> {
impl<Pixel: Clone + rgb::Pod> SharedPixelBuffer<Pixel> impl<Pixel: Clone + rgb::Pod> SharedPixelBuffer<Pixel>
where where
[Pixel]: rgb::ComponentBytes<Pixel>, [Pixel]: rgb::ComponentBytes<u8>,
{ {
/// Returns the pixels interpreted as raw bytes. /// Returns the pixels interpreted as raw bytes.
pub fn as_bytes(&self) -> &[u8] { pub fn as_bytes(&self) -> &[u8] {