Update flake.lock #340
Annotations
3 warnings
|
this boolean expression can be simplified:
challenges/src/endpoints/coding_challenges/submissions.rs#L600
warning: this boolean expression can be simplified
--> challenges/src/endpoints/coding_challenges/submissions.rs:600:12
|
600 | if !self
| ____________^
601 | | .ids
602 | | .get(&key)
603 | | .is_some_and(|&x| self.id_position(x) == 0)
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
= note: `#[warn(clippy::nonminimal_bool)]` on by default
help: try
|
600 ~ if self
601 + .ids
602 + .get(&key).is_none_or(|&x| self.id_position(x) != 0)
|
|
|
this boolean expression can be simplified:
challenges/src/endpoints/coding_challenges/submissions.rs#L600
warning: this boolean expression can be simplified
--> challenges/src/endpoints/coding_challenges/submissions.rs:600:12
|
600 | if !self
| ____________^
601 | | .ids
602 | | .get(&key)
603 | | .is_some_and(|&x| self.id_position(x) == 0)
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
= note: `#[warn(clippy::nonminimal_bool)]` on by default
help: try
|
600 ~ if self
601 + .ids
602 + .get(&key).is_none_or(|&x| self.id_position(x) != 0)
|
|
|
large size difference between variants:
challenges/src/endpoints/coding_challenges/submissions.rs#L468
warning: large size difference between variants
--> challenges/src/endpoints/coding_challenges/submissions.rs:468:1
|
468 | / enum JudgeSubmissionError {
469 | | #[error("failed to judge submission: {0}")]
470 | | Judge(#[from] judge::Error),
| | --------------------------- the largest variant contains at least 344 bytes
471 | | #[error("database error: {0}")]
... |
476 | | TaskRewards(#[from] SendTaskRewardsError),
| | ----------------------------------------- the second-largest variant contains at least 64 bytes
477 | | }
| |_^ the entire enum is at least 344 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
470 - Judge(#[from] judge::Error),
470 + Judge(#[from] Box<judge::Error>),
|
|