Skip to content

Build fails on linux/x86_64 #10

@jibanes

Description

@jibanes
   Compiling iced_renderer v0.13.0-dev (https://github.com/iced-rs/iced?rev=dcdf1307006883f50083c186ca7b8656bfa60873#dcdf1307)
   Compiling iced_highlighter v0.13.0-dev (https://github.com/iced-rs/iced?rev=dcdf1307006883f50083c186ca7b8656bfa60873#dcdf1307)
   Compiling iced_widget v0.13.0-dev (https://github.com/iced-rs/iced?rev=dcdf1307006883f50083c186ca7b8656bfa60873#dcdf1307)
error[E0277]: the trait bound `Cow<'static, [u8]>: From<&[u8; 1892]>` is not satisfied
   --> /home/jibanes/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/dcdf130/widget/src/helpers.rs:950:34
    |
950 |         svg::Handle::from_memory(include_bytes!("../assets/iced-logo.svg"))
    |         ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&[u8; 1892]>` is not implemented for `Cow<'static, [u8]>`
    |         |
    |         required by a bound introduced by this call
    |
    = help: the following other types implement trait `From<T>`:
              <Cow<'a, str> as From<percent_encoding::PercentEncode<'a>>>
              <Cow<'a, [u8]> as From<percent_encoding::PercentDecode<'a>>>
              <Cow<'a, [u8]> as From<read_fonts::font_data::FontData<'a>>>
              <Cow<'a, str> as From<CowStr<'a>>>
              <Cow<'a, OsStr> as From<OsString>>
              <Cow<'a, OsStr> as From<&'a OsStr>>
              <Cow<'a, OsStr> as From<&'a OsString>>
              <Cow<'a, CStr> as From<CString>>
            and 14 others
    = note: required for `&[u8; 1892]` to implement `Into<Cow<'static, [u8]>>`
note: required by a bound in `iced_renderer::iced_core::svg::Handle::from_memory`
   --> /home/jibanes/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/dcdf130/core/src/svg.rs:29:36
    |
29  |     pub fn from_memory(bytes: impl Into<Cow<'static, [u8]>>) -> Handle {
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Handle::from_memory`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `iced_widget` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions