Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Replace is_valid with refactored version #1000

Replace is_valid with refactored version

Replace is_valid with refactored version #1000

Triggered via pull request February 9, 2024 17:56
Status Failure
Total duration 4m 11s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
the trait bound `transcript::ContigStatus: annotate::_::_serde::Serialize` is not satisfied: vdj_ann/src/annotate.rs#L2972
error[E0277]: the trait bound `transcript::ContigStatus: annotate::_::_serde::Serialize` is not satisfied --> vdj_ann/src/annotate.rs:2972:17 | 2972 | #[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] | ^^^^^^^^^ the trait `annotate::_::_serde::Serialize` is not implemented for `transcript::ContigStatus` ... 3021 | #[serde(skip_serializing_if = "Option::is_none")] | - required by a bound introduced by this call | = help: the following other types implement trait `annotate::_::_serde::Serialize`: &'a T &'a mut T () (T0, T1) (T0, T1, T2) (T0, T1, T2, T3) (T0, T1, T2, T3, T4) (T0, T1, T2, T3, T4, T5) and 154 others = note: required for `std::option::Option<transcript::ContigStatus>` to implement `annotate::_::_serde::Serialize` note: required by a bound in `annotate::_::_serde::ser::SerializeStruct::serialize_field` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/ser/mod.rs:1865:12 | 1865 | T: Serialize; | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field`
the trait bound `transcript::ContigStatus: annotate::_::_serde::Deserialize<'_>` is not satisfied: vdj_ann/src/annotate.rs#L3022
error[E0277]: the trait bound `transcript::ContigStatus: annotate::_::_serde::Deserialize<'_>` is not satisfied --> vdj_ann/src/annotate.rs:3022:30 | 3022 | pub productive_criteria: Option<ContigStatus>, | ^^^^^^^^^^^^^^^^^^^^ the trait `annotate::_::_serde::Deserialize<'_>` is not implemented for `transcript::ContigStatus` | = help: the following other types implement trait `annotate::_::_serde::Deserialize<'de>`: &'a [u8] &'a std::path::Path &'a str () (T0, T1) (T0, T1, T2) (T0, T1, T2, T3) (T0, T1, T2, T3, T4) and 160 others = note: required for `std::option::Option<transcript::ContigStatus>` to implement `annotate::_::_serde::Deserialize<'_>` note: required by a bound in `annotate::_::_serde::de::SeqAccess::next_element` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/de/mod.rs:1724:12 | 1724 | T: Deserialize<'de>, | ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element`
the trait bound `transcript::ContigStatus: annotate::_::_serde::Deserialize<'_>` is not satisfied: vdj_ann/src/annotate.rs#L3022
error[E0277]: the trait bound `transcript::ContigStatus: annotate::_::_serde::Deserialize<'_>` is not satisfied --> vdj_ann/src/annotate.rs:3022:30 | 3022 | pub productive_criteria: Option<ContigStatus>, | ^^^^^^^^^^^^^^^^^^^^ the trait `annotate::_::_serde::Deserialize<'_>` is not implemented for `transcript::ContigStatus` | = help: the following other types implement trait `annotate::_::_serde::Deserialize<'de>`: &'a [u8] &'a std::path::Path &'a str () (T0, T1) (T0, T1, T2) (T0, T1, T2, T3) (T0, T1, T2, T3, T4) and 160 others = note: required for `std::option::Option<transcript::ContigStatus>` to implement `annotate::_::_serde::Deserialize<'_>` note: required by a bound in `annotate::_::_serde::de::MapAccess::next_value` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/de/mod.rs:1863:12 | 1863 | V: Deserialize<'de>, | ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value`
the trait bound `transcript::ContigStatus: annotate::_::_serde::Deserialize<'_>` is not satisfied: vdj_ann/src/annotate.rs#L3021
error[E0277]: the trait bound `transcript::ContigStatus: annotate::_::_serde::Deserialize<'_>` is not satisfied --> vdj_ann/src/annotate.rs:3021:5 | 3021 | #[serde(skip_serializing_if = "Option::is_none")] | ^ the trait `annotate::_::_serde::Deserialize<'_>` is not implemented for `transcript::ContigStatus` | = help: the following other types implement trait `annotate::_::_serde::Deserialize<'de>`: &'a [u8] &'a std::path::Path &'a str () (T0, T1) (T0, T1, T2) (T0, T1, T2, T3) (T0, T1, T2, T3, T4) and 160 others = note: required for `std::option::Option<transcript::ContigStatus>` to implement `annotate::_::_serde::Deserialize<'_>` note: required by a bound in `annotate::_::_serde::__private::de::missing_field` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/de.rs:25:8 | 25 | V: Deserialize<'de>, | ^^^^^^^^^^^^^^^^ required by this bound in `missing_field`
the trait bound `transcript::ContigStatus: std::default::Default` is not satisfied: vdj_ann/src/transcript.rs#L174
error[E0277]: the trait bound `transcript::ContigStatus: std::default::Default` is not satisfied --> vdj_ann/src/transcript.rs:174:15 | 174 | ..Default::default() | ^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `transcript::ContigStatus` | help: consider annotating `transcript::ContigStatus` with `#[derive(Default)]` | 25 | #[derive(Default)] |
no variant or associated item named `from_str` found for enum `VdjChain` in the current scope: vdj_ann/src/transcript.rs#L266
error[E0599]: no variant or associated item named `from_str` found for enum `VdjChain` in the current scope --> vdj_ann/src/transcript.rs:266:32 | 266 | .map(|chain| VdjChain::from_str(chain).unwrap()) | ^^^^^^^^ variant or associated item not found in `VdjChain` | = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 5 | use std::str::FromStr; |
no function or associated item named `default` found for struct `ContigStatus` in the current scope: vdj_ann/src/transcript.rs#L274
error[E0599]: no function or associated item named `default` found for struct `ContigStatus` in the current scope --> vdj_ann/src/transcript.rs:274:27 | 25 | pub struct ContigStatus { | ----------------------- function or associated item `default` not found for this struct ... 274 | (false, ContigStatus::default()) | ^^^^^^^ function or associated item not found in `ContigStatus` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `default`, perhaps you need to implement it: candidate #1: `std::default::Default`
rust
Clippy had exited with the 101 exit code
rust
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, 10XGenomics/clippy-check@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
calling `set_len()` immediately after reserving a buffer creates uninitialized values: vector_utils/src/lib.rs#L490
warning: calling `set_len()` immediately after reserving a buffer creates uninitialized values --> vector_utils/src/lib.rs:490:5 | 490 | x.reserve(n); | ^^^^^^^^^^^^^ 491 | x.set_len(n); /* unsafe */ | ^^^^^^^^^^^^ | = help: initialize the buffer or wrap the content in `MaybeUninit` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec note: the lint level is defined here --> vector_utils/src/lib.rs:487:8 | 487 | #[warn(clippy::uninit_vec)] | ^^^^^^^^^^^^^^^^^^