We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d058a27 commit 15a6c9bCopy full SHA for 15a6c9b
src/lib/browser.rs
@@ -1,9 +1,9 @@
1
use std::error::Error;
2
use std::rc::Rc;
3
4
-use crate::{station::Station, Config};
5
-use inquire::{error::InquireError, Autocomplete, Text};
6
-use radiobrowser::{blocking::RadioBrowserAPI, ApiCountry, ApiStation, StationOrder};
+use crate::{Config, station::Station};
+use inquire::{Autocomplete, Text, error::InquireError};
+use radiobrowser::{ApiCountry, ApiStation, StationOrder, blocking::RadioBrowserAPI};
7
8
pub type StationCache = Rc<Vec<ApiStation>>;
9
src/lib/config.rs
@@ -6,8 +6,8 @@ use crate::station::Station;
use crate::version::Version;
use colored::*;
-use serde::de::{Deserializer, Error as SeError, Visitor};
10
use serde::Deserialize;
+use serde::de::{Deserializer, Error as SeError, Visitor};
11
use std::fmt::{Formatter, Result as ResultFmt};
12
use std::fs::File;
13
use std::io::{Read, Write};
@@ -48,7 +48,7 @@ impl Config {
48
code: ConfigErrorCode::OpenError,
49
message: format!("Could not open the file {:?}", file),
50
extra: format!("{:?}", error),
51
- })
+ });
52
}
53
};
54
@@ -61,7 +61,7 @@ impl Config {
61
code: ConfigErrorCode::ReadError,
62
message: format!("Couldn't read the file {:?}", file),
63
64
65
66
67
@@ -79,7 +79,7 @@ impl Config {
79
code: ConfigErrorCode::ParseError,
80
message: "Couldn't parse config".to_string(),
81
82
83
84
85
src/main.rs
@@ -3,8 +3,9 @@ use colored::*;
use inquire::{InquireError, Select};
use log::{debug, error, info, log_enabled, warn};
use radio_libs::{
+ Cli, Config, ConfigError, Station, Version,
browser::{Browser, StationCache},
- perror, Cli, Config, ConfigError, Station, Version,
+ perror,
use std::io::Write;
use std::process::{Command, Stdio};
0 commit comments