cargo clippy fix
This commit is contained in:
@@ -50,12 +50,12 @@ impl<H: Handler, N: Notifier> Worker<H, N> {
|
||||
notifier: Arc<N>,
|
||||
) -> Self {
|
||||
Self {
|
||||
id: id,
|
||||
manager: manager,
|
||||
queue: queue,
|
||||
id,
|
||||
manager,
|
||||
queue,
|
||||
status: Arc::new(Mutex::new(WorkerStatus::Pending)),
|
||||
shared_handler: shared_handler,
|
||||
notifier: notifier,
|
||||
shared_handler,
|
||||
notifier,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ impl<H: Handler, N: Notifier> Manager<H, N> {
|
||||
status: ManagerStatus::Down,
|
||||
queue: Arc::new(Queue::new()),
|
||||
shared_handler: Arc::new(shared_handler),
|
||||
notifier: notifier,
|
||||
notifier,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user