error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/basic_frame.rs:40:19
|
40 | if active {
| ___________________^
41 | | #[cfg(target_endian = "little")]
42 | | return [0x80, 0x80, 0x80, 0xFF];
43 | | #[cfg(target_endian = "big")]
44 | | [0xFF, 0x80, 0x80, 0x80];
| | - help: consider removing this semicolon
45 | | } else {
| |_________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/basic_frame.rs:45:16
|
45 | } else {
| ________________^
46 | | #[cfg(target_endian = "little")]
47 | | return [0x60, 0x60, 0x60, 0xFF];
48 | | #[cfg(target_endian = "big")]
49 | | [0xFF, 0x60, 0x60, 0x60];
| | - help: consider removing this semicolon
50 | | }
| |_________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/basic_frame.rs:89:38
|
89 | ButtonState::Disabled => {
| ______________________________________^
90 | | #[cfg(target_endian = "little")]
91 | | return [0x20, 0x80, 0x80, 0xFF];
92 | | #[cfg(target_endian = "big")]
93 | | [0xFF, 0x80, 0x80, 0x20];
| | - help: consider removing this semicolon
94 | | }
| |_____________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/concept_frame.rs:40:19
|
40 | if active {
| ___________________^
41 | | #[cfg(target_endian = "little")]
42 | | return [0xE6, 0xE6, 0xE6, 0xFF];
43 | | #[cfg(target_endian = "big")]
44 | | [0xFF, 0xE6, 0xE6, 0xE6];
| | - help: consider removing this semicolon
45 | | } else {
| |_________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/concept_frame.rs:45:16
|
45 | } else {
| ________________^
46 | | #[cfg(target_endian = "little")]
47 | | return [0xDC, 0xDC, 0xDC, 0xFF];
48 | | #[cfg(target_endian = "big")]
49 | | [0xFF, 0xDC, 0xDC, 0xDC];
| | - help: consider removing this semicolon
50 | | }
| |_________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/concept_frame.rs:60:16
|
60 | } else {
| ________________^
61 | | #[cfg(target_endian = "little")]
62 | | return [0x78, 0x78, 0x78, 0xFF];
63 | | #[cfg(target_endian = "big")]
64 | | [0xFF, 0x78, 0x78, 0x78];
| | - help: consider removing this semicolon
65 | | }
| |_________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/concept_frame.rs:70:37
|
70 | ButtonState::Hovered => {
| _____________________________________^
71 | | #[cfg(target_endian = "little")]
72 | | return [0x52, 0x43, 0xD9, 0xFF];
73 | | #[cfg(target_endian = "big")]
74 | | [0xFF, 0xD9, 0x43, 0x52];
| | - help: consider removing this semicolon
75 | | }
| |_____________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/concept_frame.rs:82:37
|
82 | ButtonState::Hovered => {
| _____________________________________^
83 | | #[cfg(target_endian = "little")]
84 | | return [0x70, 0xCB, 0x2D, 0xFF];
85 | | #[cfg(target_endian = "big")]
86 | | [0xFF, 0x2D, 0xCB, 0x70];
| | - help: consider removing this semicolon
87 | | }
| |_____________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error[E0308]: mismatched types
--> /cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.4.3/src/window/concept_frame.rs:94:37
|
94 | ButtonState::Hovered => {
| _____________________________________^
95 | | #[cfg(target_endian = "little")]
96 | | return [0xE8, 0xAD, 0x3C, 0xFF];
97 | | #[cfg(target_endian = "big")]
98 | | [0xFF, 0x3C, 0xAD, 0xE8];
| | - help: consider removing this semicolon
99 | | }
| |_____________^ expected array of 4 elements, found ()
|
= note: expected type `[u8; 4]`
found type `()`
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `smithay-client-toolkit`.
warning: build failed, waiting for other jobs to finish...
error: build failed