Skip to content

Use snapshots in Program tests #721

Use snapshots in Program tests

Use snapshots in Program tests #721

Triggered via pull request March 8, 2025 19:08
Status Failure
Total duration 1m 33s
Artifacts

check.yml

on: pull_request
nightly / fmt
14s
nightly / fmt
nightly / doc
40s
nightly / doc
Matrix: clippy
Matrix: install
Fit to window
Zoom out
Zoom in

Annotations

3 errors
this expression creates a reference which is immediately dereferenced by the compiler: crates/psqs/src/program/mopac/tests.rs#L116
error: this expression creates a reference which is immediately dereferenced by the compiler --> crates/psqs/src/program/mopac/tests.rs:116:25 | 116 | Mopac::write_params(&tm.params.as_ref().unwrap(), &param_file); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `tm.params.as_ref().unwrap()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `-D clippy::needless-borrow` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
the borrowed expression implements the required traits: crates/psqs/src/program/mopac/mod.rs#L256
error: the borrowed expression implements the required traits --> crates/psqs/src/program/mopac/mod.rs:256:43 | 256 | let mut file = match File::create(&path) { | ^^^^^ help: change this to: `path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
nightly / clippy
Clippy had exited with the 101 exit code