Skip to content

upgrade to byte_struct 0.6.1 causes problems  #2

@jrandall

Description

@jrandall

Without making any code changes, our builds started failing at the end of the day yesterday, apparently due to changes in byte_struct 0.6.1, as our previous build that picked up byte_struct 0.6.0 was working fine.

         Checking byte_struct v0.6.1
     error[E0277]: the trait bound `[T; 1]: std::convert::From<std::vec::Vec<T>>` is not satisfied
        --> /build/lentil/build/home/.cargo/registry/src/github.com-1ecc6299db9ec823/byte_struct-0.6.1/src/lib.rs:416:40
         |
     416 |                 }).collect::<Vec<_>>().try_into().map_err(|_|()).unwrap()
         |                                        ^^^^^^^^ the trait `std::convert::From<std::vec::Vec<T>>` is not implemented for `[T; 1]`
     ...
     442 | bsa5!(1);

I'm not yet sure what the actual issue is here, but I would not expect patch versions to have changes that break backwards compatibility or require newer rust versions (here we are building this with rust 1.44.1).

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