mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
backout of commit 402f7ea649
rgb crate has eben fixed upstream, remove the temporary work-around again.
This commit is contained in:
parent
0be2d4521e
commit
e74745c68a
2 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||||
|
|
|
@ -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] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue