|
1 | 1 | use crate::utils; |
2 | 2 | use clap::{ |
3 | | - builder::{IntoResettable, PossibleValuesParser, TypedValueParser, ValueParser}, |
4 | 3 | Args, Parser, Subcommand, ValueEnum, |
| 4 | + builder::{IntoResettable, PossibleValuesParser, TypedValueParser, ValueParser}, |
5 | 5 | }; |
6 | 6 | use color_eyre::{ |
7 | | - eyre::{bail, Context}, |
8 | 7 | Report, |
| 8 | + eyre::{Context, bail}, |
9 | 9 | }; |
10 | 10 | use directories::ProjectDirs; |
11 | 11 | use gethostname::gethostname; |
12 | 12 | use librespot_core::{cache::Cache, config::DeviceType as LSDeviceType, config::SessionConfig}; |
13 | 13 | use librespot_playback::{ |
14 | 14 | audio_backend, |
15 | 15 | config::{AudioFormat as LSAudioFormat, Bitrate as LSBitrate, PlayerConfig}, |
16 | | - dither::{mk_ditherer, DithererBuilder, TriangularDitherer}, |
| 16 | + dither::{DithererBuilder, TriangularDitherer, mk_ditherer}, |
17 | 17 | }; |
18 | 18 | use log::{debug, error, info, warn}; |
19 | 19 | use serde::{ |
20 | | - de::{self, Error, Unexpected}, |
21 | 20 | Deserialize, Deserializer, |
| 21 | + de::{self, Error, Unexpected}, |
22 | 22 | }; |
23 | 23 | use sha1::{Digest, Sha1}; |
24 | 24 | use std::{ |
@@ -488,10 +488,14 @@ impl CliConfig { |
488 | 488 | if let Some(problem) = get_known_config_problem(&path) { |
489 | 489 | match problem { |
490 | 490 | KnownConfigProblem::MissingFeature(feature) => { |
491 | | - warn!("The config key '{path}' is ignored, because the feature '{feature}' is missing in this build"); |
| 491 | + warn!( |
| 492 | + "The config key '{path}' is ignored, because the feature '{feature}' is missing in this build" |
| 493 | + ); |
492 | 494 | } |
493 | 495 | KnownConfigProblem::UsernamePassword => { |
494 | | - warn!("The config key '{path}' is ignored, because authentication with username and password is no longer supported by Spotify. Please use `spotifyd authenticate` instead"); |
| 496 | + warn!( |
| 497 | + "The config key '{path}' is ignored, because authentication with username and password is no longer supported by Spotify. Please use `spotifyd authenticate` instead" |
| 498 | + ); |
495 | 499 | } |
496 | 500 | } |
497 | 501 | } else { |
|
0 commit comments