Skip to content

Error compiling #27

@CastilloDel

Description

@CastilloDel

While compiling an updated version (c235259) I got the following error

error[E0277]: the type `[u8]` cannot be indexed by `(Bound<usize>, Bound<usize>)`
   --> /home/daniel/.cargo/git/checkouts/noodles-f00ebc122d065317/c235259/noodles-fasta/src/reader.rs:251:36
    |
251 |         Ok(Record::new(definition, sequence[range].to_vec()))
    |                                    ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
    |
    = help: the trait `SliceIndex<[u8]>` is not implemented for `(Bound<usize>, Bound<usize>)`
    = note: required because of the requirements on the impl of `std::ops::Index<(Bound<usize>, Bound<usize>)>` for `Vec<u8>`

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfasta

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions