diff --git a/src/asynk/async_runnable.rs b/src/asynk/async_runnable.rs index 7a7bac3c..bde2bed3 100644 --- a/src/asynk/async_runnable.rs +++ b/src/asynk/async_runnable.rs @@ -12,7 +12,7 @@ pub const RETRIES_NUMBER: i32 = 20; impl From for FangError { fn from(error: AsyncQueueError) -> Self { - let message = format!("{:?}", error); + let message = format!("{error:?}"); FangError { description: message, } diff --git a/src/blocking/error.rs b/src/blocking/error.rs index a5205fb3..333b868f 100644 --- a/src/blocking/error.rs +++ b/src/blocking/error.rs @@ -6,14 +6,14 @@ use std::io::Error as IoError; impl From for FangError { fn from(error: IoError) -> Self { - let description = format!("{:?}", error); + let description = format!("{error:?}"); FangError { description } } } impl From for FangError { fn from(error: QueueError) -> Self { - let description = format!("{:?}", error); + let description = format!("{error:?}"); FangError { description } } } diff --git a/src/blocking/worker_pool.rs b/src/blocking/worker_pool.rs index b5190289..266e6a73 100644 --- a/src/blocking/worker_pool.rs +++ b/src/blocking/worker_pool.rs @@ -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())