cargo : warning: variable does not need to be mutable Au caractère C:\Users\serameza\AppData\Local\Temp\ps-script-64e42618-0a9a-460b-b545-276d8eac68fd.ps1:96 : 59 + ... in\entropyk"; cargo test --package entropyk-solver --lib 2>&1 | Out-F ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (warning: variab...d to be mutable:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError --> crates\components\src\screw_economizer_compressor.rs:623:13 | 623 | let mut incoming_iter = external_edge_state_indices.iter() | ----^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default warning: struct `MockBrineBackend` is never constructed --> crates\components\src\brine_boundary.rs:601:12 | 601 | struct MockBrineBackend; | ^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: associated function `new` is never used --> crates\components\src\brine_boundary.rs:604:12 | 603 | impl MockBrineBackend { | --------------------- associated function in this implementation 604 | fn new() -> Self { | ^^^ warning: function `make_port` is never used --> crates\components\src\brine_boundary.rs:676:8 | 676 | fn make_port(fluid: &str, p_pa: f64, h_jkg: f64) -> ConnectedPort { | ^^^^^^^^^ warning: constant `K_AIR` is never used --> crates\components\src\heat_exchanger\fin_coil_condenser.rs:92:7 | 92 | const K_AIR: f64 = 0.0270; | ^^^^^ warning: constant `RHO_AIR_STD` is never used --> crates\components\src\heat_exchanger\fin_coil_condenser.rs:96:7 | 96 | const RHO_AIR_STD: f64 = 1.145; | ^^^^^^^^^^^ warning: missing documentation for a method --> crates\components\src\heat_exchanger\condenser.rs:218:5 | 218 | pub fn hot_inlet_state(&self) -> Result { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> crates\components\src\lib.rs:55:9 | 55 | #![warn(missing_docs)] | ^^^^^^^^^^^^ warning: missing documentation for a method --> crates\components\src\heat_exchanger\evaporator.rs:244:5 | 244 | pub fn hot_inlet_state(&self) -> Result { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a method --> crates\components\src\isentropic_compressor.rs:135:5 | 135 | pub fn isentropic_efficiency(&self) -> f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a method --> crates\components\src\isentropic_compressor.rs:139:5 | 139 | pub fn t_cond_k(&self) -> f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a method --> crates\components\src\isentropic_compressor.rs:143:5 | 143 | pub fn t_evap_k(&self) -> f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a method --> crates\components\src\isentropic_compressor.rs:147:5 | 147 | pub fn superheat_k(&self) -> f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\registry.rs:18:24 | 18 | MissingParameter { component: String, parameter: String }, | ^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\registry.rs:18:43 | 18 | MissingParameter { component: String, parameter: String }, | ^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\registry.rs:20:24 | 20 | InvalidParameter { component: String, parameter: String, reason: String }, | ^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\registry.rs:20:43 | 20 | InvalidParameter { component: String, parameter: String, reason: String }, | ^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\registry.rs:20:62 | 20 | InvalidParameter { component: String, parameter: String, reason: String }, | ^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1002:5 | 1002 | pub fluid: FluidId, | ^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1003:5 | 1003 | pub p_set_pa: f64, | ^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1004:5 | 1004 | pub quality: f64, | ^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1005:5 | 1005 | pub edge_indices: Vec<(usize, usize)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1097:5 | 1097 | pub fluid: FluidId, | ^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1098:5 | 1098 | pub p_back_pa: f64, | ^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1099:5 | 1099 | pub quality_opt: Option, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1100:5 | 1100 | pub edge_indices: Vec<(usize, usize)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1188:5 | 1188 | pub fluid: FluidId, | ^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1189:5 | 1189 | pub concentration: f64, | ^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1190:5 | 1190 | pub temperature_k: f64, | ^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1191:5 | 1191 | pub pressure_pa: f64, | ^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1192:5 | 1192 | pub edge_indices: Vec<(usize, usize)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1292:5 | 1292 | pub p_back_pa: f64, | ^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1293:5 | 1293 | pub edge_indices: Vec<(usize, usize)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1366:5 | 1366 | pub temperature_k: f64, | ^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1367:5 | 1367 | pub relative_humidity: f64, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1368:5 | 1368 | pub pressure_pa: f64, | ^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1369:5 | 1369 | pub edge_indices: Vec<(usize, usize)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1456:5 | 1456 | pub p_back_pa: f64, | ^^^^^^^^^^^^^^^^^^ warning: missing documentation for a struct field --> crates\components\src\python_components.rs:1457:5 | 1457 | pub edge_indices: Vec<(usize, usize)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: `entropyk-components` (lib) generated 38 warnings (run `cargo fix --lib -p entropyk-components` to apply 1 suggestion) Compiling entropyk-solver v0.1.0 (C:\Users\serameza\impact\dev\Entropyk-main\entropyk\crates\solver) error[E0308]: mismatched types --> crates\solver\src\macro_component.rs:707:36 | 707 | mc.set_system_context(4, &[(10, 11)]); | ^^^^^^^^ expected a tuple with 3 elements, found one with 2 elements | = note: expected tuple `(usize, usize, usize)` found tuple `(usize, usize)` warning: variable does not need to be mutable --> crates\solver\src\inverse\calibration.rs:1005:13 | 1005 | let mut sys = System::new(); | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default warning: variable does not need to be mutable --> crates\solver\src\inverse\calibration.rs:1021:13 | 1021 | let mut sys = System::new(); | ----^^^ | | | help: remove this `mut` warning: value assigned to `eq_offset` is never read --> crates\solver\src\system.rs:1900:9 | 1900 | eq_offset += n_couplings; | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: maybe it is overwritten before being read? = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default For more information about this error, try `rustc --explain E0308`. warning: `entropyk-solver` (lib test) generated 3 warnings error: could not compile `entropyk-solver` (lib test) due to 1 previous error; 3 warnings emitted