Use snapshots in Program
tests
#721
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(), ¶m_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
|