forked from the-distro/ofborg
silence some clippy warnings
It looks like the current version of rustc/clippy seems the include expanded macros (like tracing) in the complexity. None of these warnings show up with rust 1.42.0.
This commit is contained in:
parent
cc89c1a88d
commit
52e2105df7
|
@ -149,6 +149,8 @@ impl SpawnedAsyncCmd {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: remove with rust/cargo update
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn block_on_waiters(
|
||||
monitor_rx: mpsc::Receiver<(WaitTarget, WaitResult<()>)>,
|
||||
mut waiters: HashMap<WaitTarget, thread::JoinHandle<()>>,
|
||||
|
|
|
@ -9,6 +9,8 @@ use ofborg::easyamqp::{self, ChannelExt, ConsumerExt};
|
|||
use ofborg::easylapin;
|
||||
use ofborg::{checkout, config, tasks};
|
||||
|
||||
// FIXME: remove with rust/cargo update
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
ofborg::setup_log();
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ use std::process;
|
|||
use amqp::Basic;
|
||||
use tracing::{error, info};
|
||||
|
||||
// FIXME: remove with rust/cargo update
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn main() {
|
||||
let memory_info = sys_info::mem_info().expect("Unable to get memory information from OS");
|
||||
|
||||
|
|
|
@ -271,6 +271,8 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: remove with rust/cargo update
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn consumer(
|
||||
&self,
|
||||
job: &buildjob::BuildJob,
|
||||
|
|
|
@ -246,6 +246,8 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: remove with rust/cargo update
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn evaluate_job(&mut self) -> Result<worker::Actions, EvalWorkerError> {
|
||||
let job = self.job;
|
||||
let repo = self
|
||||
|
|
Loading…
Reference in a new issue