mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 09:49:31 +02:00
refactor: update to Rust 1.85 and edition 2024, use inline log args
- Update MSRV to 1.85 and Rust edition to 2024. - Refactor all logging macros to use inline argument formatting. - Fix import order in main.rs and examples. - Add async environment variable setter to main.rs as safe facade.
This commit is contained in:
parent
0aec38b07a
commit
6288e7e03c
30 changed files with 419 additions and 448 deletions
|
@ -18,7 +18,6 @@ use oauth2::{
|
|||
EndpointSet, PkceCodeChallenge, RedirectUrl, Scope, TokenResponse, TokenUrl,
|
||||
};
|
||||
use oauth2::{EmptyExtraTokenFields, PkceCodeVerifier, RefreshToken, StandardTokenResponse};
|
||||
use reqwest;
|
||||
use std::io;
|
||||
use std::sync::mpsc;
|
||||
use std::time::{Duration, Instant};
|
||||
|
@ -156,7 +155,7 @@ fn get_authcode_listener(
|
|||
addr: socket_address,
|
||||
e,
|
||||
})?;
|
||||
info!("OAuth server listening on {:?}", socket_address);
|
||||
info!("OAuth server listening on {socket_address:?}");
|
||||
|
||||
// The server will terminate itself after collecting the first code.
|
||||
let mut stream = listener
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue