diff --git a/internal/core/Cargo.toml b/internal/core/Cargo.toml index 552c3d425..bb48295d6 100644 --- a/internal/core/Cargo.toml +++ b/internal/core/Cargo.toml @@ -67,7 +67,7 @@ once_cell = { version = "1.5", default-features = false, features = ["critical-s pin-project = "1" pin-weak = { version = "1.1", default-features = false } # 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 } scopeguard = { version = "1.1.0", default-features = false } slab = { version = "0.4.3", default-features = false } diff --git a/internal/core/graphics/image.rs b/internal/core/graphics/image.rs index fec013615..21e64ca0f 100644 --- a/internal/core/graphics/image.rs +++ b/internal/core/graphics/image.rs @@ -91,7 +91,7 @@ impl SharedPixelBuffer { impl SharedPixelBuffer where - [Pixel]: rgb::ComponentBytes, + [Pixel]: rgb::ComponentBytes, { /// Returns the pixels interpreted as raw bytes. pub fn as_bytes(&self) -> &[u8] {