Behebe Warnung über ungenutzte logische Operation in DirectorWorker: Ändere die Bedingung für den Transportstart, um das Ergebnis der Funktion zu ignorieren und die Lesbarkeit zu verbessern.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m28s
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m28s
This commit is contained in:
16
build_output.txt
Normal file
16
build_output.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
Compiling YpDaemon v0.5.0 (/mnt/share/torsten/Programs/ypdaemon)
|
||||
warning: unused logical operation that must be used
|
||||
--> src/worker/director.rs:294:13
|
||||
|
|
||||
294 | / director.may_start_transport
|
||||
295 | | && self.start_transports_stub(&director).is_err();
|
||||
| |_________________________________________________________________^ the logical operation produces a value
|
||||
|
|
||||
= note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
|
||||
help: use `let _ = ...` to ignore the resulting value
|
||||
|
|
||||
294 | let _ = director.may_start_transport
|
||||
| +++++++
|
||||
|
||||
warning: `YpDaemon` (bin "YpDaemon") generated 1 warning
|
||||
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.01s
|
||||
@@ -291,8 +291,9 @@ impl DirectorWorker {
|
||||
if director.may_produce {
|
||||
self.start_productions(&director)?;
|
||||
}
|
||||
if director.may_start_transport
|
||||
&& self.start_transports_stub(&director).is_err() {}
|
||||
if director.may_start_transport {
|
||||
let _ = self.start_transports_stub(&director);
|
||||
}
|
||||
if director.may_sell {
|
||||
eprintln!(
|
||||
"[DirectorWorker] Starte Verkaufsprüfung für Director {} (branch_id={})",
|
||||
|
||||
Reference in New Issue
Block a user