mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Fix newer Clippy warnings for 1.67.0 (#33)
This commit is contained in:
parent
fd72cf5c4e
commit
3629f15e0d
8 changed files with 33 additions and 28 deletions
|
@ -455,13 +455,13 @@ async fn login(worker: Requester, settings: &ApplicationSettings) -> IambResult<
|
|||
match worker.login(LoginStyle::Password(password)) {
|
||||
Ok(info) => {
|
||||
if let Some(msg) = info {
|
||||
println!("{}", msg);
|
||||
println!("{msg}");
|
||||
}
|
||||
|
||||
break;
|
||||
},
|
||||
Err(err) => {
|
||||
println!("Failed to login: {}", err);
|
||||
println!("Failed to login: {err}");
|
||||
continue;
|
||||
},
|
||||
}
|
||||
|
@ -471,7 +471,7 @@ async fn login(worker: Requester, settings: &ApplicationSettings) -> IambResult<
|
|||
}
|
||||
|
||||
fn print_exit<T: Display, N>(v: T) -> N {
|
||||
println!("{}", v);
|
||||
println!("{v}");
|
||||
process::exit(2);
|
||||
}
|
||||
|
||||
|
@ -532,7 +532,7 @@ fn main() -> IambResult<()> {
|
|||
.thread_name_fn(|| {
|
||||
static ATOMIC_ID: AtomicUsize = AtomicUsize::new(0);
|
||||
let id = ATOMIC_ID.fetch_add(1, Ordering::SeqCst);
|
||||
format!("iamb-worker-{}", id)
|
||||
format!("iamb-worker-{id}")
|
||||
})
|
||||
.build()
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue