Skip to content

Commit

Permalink
chore(lint): fix clippy warnings (#109)
Browse files Browse the repository at this point in the history
fix clippy warnings
  • Loading branch information
ayrat555 authored Feb 3, 2023
1 parent 01934e2 commit 3e4bf7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/asynk/async_runnable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub const RETRIES_NUMBER: i32 = 20;

impl From<AsyncQueueError> for FangError {
fn from(error: AsyncQueueError) -> Self {
let message = format!("{:?}", error);
let message = format!("{error:?}");
FangError {
description: message,
}
Expand Down
4 changes: 2 additions & 2 deletions src/blocking/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ use std::io::Error as IoError;

impl From<IoError> for FangError {
fn from(error: IoError) -> Self {
let description = format!("{:?}", error);
let description = format!("{error:?}");
FangError { description }
}
}

impl From<QueueError> for FangError {
fn from(error: QueueError) -> Self {
let description = format!("{:?}", error);
let description = format!("{error:?}");
FangError { description }
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/blocking/worker_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ where
/// This is necessary in order to execute tasks.
pub fn start(&mut self) -> Result<(), FangError> {
for idx in 1..self.number_of_workers + 1 {
let name = format!("worker_{}{}", self.task_type, idx);
let name = format!("worker_{}{idx}", self.task_type);

let worker_thread = WorkerThread::builder()
.name(name.clone())
Expand Down

0 comments on commit 3e4bf7d

Please sign in to comment.