mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix latest clippy and fmt warnings
This commit is contained in:
parent
2c20669a5c
commit
68bbb4fbbc
3 changed files with 6 additions and 3 deletions
|
@ -2,7 +2,10 @@ use std::{env, process::exit};
|
||||||
|
|
||||||
use librespot::{
|
use librespot::{
|
||||||
core::{
|
core::{
|
||||||
authentication::Credentials, config::SessionConfig, session::Session, spotify_id::{SpotifyId, SpotifyItemType},
|
authentication::Credentials,
|
||||||
|
config::SessionConfig,
|
||||||
|
session::Session,
|
||||||
|
spotify_id::{SpotifyId, SpotifyItemType},
|
||||||
},
|
},
|
||||||
playback::{
|
playback::{
|
||||||
audio_backend,
|
audio_backend,
|
||||||
|
|
|
@ -695,7 +695,7 @@ fn get_setup() -> Setup {
|
||||||
// Don't log creds.
|
// Don't log creds.
|
||||||
trace!("\t\t{} \"XXXXXXXX\"", opt);
|
trace!("\t\t{} \"XXXXXXXX\"", opt);
|
||||||
} else {
|
} else {
|
||||||
let value = matches.opt_str(opt).unwrap_or_else(|| "".to_string());
|
let value = matches.opt_str(opt).unwrap_or_default();
|
||||||
if value.is_empty() {
|
if value.is_empty() {
|
||||||
trace!("\t\t{}", opt);
|
trace!("\t\t{}", opt);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -286,7 +286,7 @@ fn run_program(env_vars: HashMap<&str, String>, onevent: &str) {
|
||||||
onevent, env_vars
|
onevent, env_vars
|
||||||
);
|
);
|
||||||
|
|
||||||
match Command::new(&v.remove(0))
|
match Command::new(v.remove(0))
|
||||||
.args(&v)
|
.args(&v)
|
||||||
.envs(env_vars.iter())
|
.envs(env_vars.iter())
|
||||||
.spawn()
|
.spawn()
|
||||||
|
|
Loading…
Reference in a new issue