Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lint): fix clippy warnings #109

Merged
merged 1 commit into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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