Skip to content

Commit 15a6c9b

Browse files
committed
cargo fmt
1 parent d058a27 commit 15a6c9b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/lib/browser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::error::Error;
22
use std::rc::Rc;
33

4-
use crate::{station::Station, Config};
5-
use inquire::{error::InquireError, Autocomplete, Text};
6-
use radiobrowser::{blocking::RadioBrowserAPI, ApiCountry, ApiStation, StationOrder};
4+
use crate::{Config, station::Station};
5+
use inquire::{Autocomplete, Text, error::InquireError};
6+
use radiobrowser::{ApiCountry, ApiStation, StationOrder, blocking::RadioBrowserAPI};
77

88
pub type StationCache = Rc<Vec<ApiStation>>;
99

src/lib/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::station::Station;
66
use crate::version::Version;
77

88
use colored::*;
9-
use serde::de::{Deserializer, Error as SeError, Visitor};
109
use serde::Deserialize;
10+
use serde::de::{Deserializer, Error as SeError, Visitor};
1111
use std::fmt::{Formatter, Result as ResultFmt};
1212
use std::fs::File;
1313
use std::io::{Read, Write};
@@ -48,7 +48,7 @@ impl Config {
4848
code: ConfigErrorCode::OpenError,
4949
message: format!("Could not open the file {:?}", file),
5050
extra: format!("{:?}", error),
51-
})
51+
});
5252
}
5353
};
5454

@@ -61,7 +61,7 @@ impl Config {
6161
code: ConfigErrorCode::ReadError,
6262
message: format!("Couldn't read the file {:?}", file),
6363
extra: format!("{:?}", error),
64-
})
64+
});
6565
}
6666
}
6767

@@ -79,7 +79,7 @@ impl Config {
7979
code: ConfigErrorCode::ParseError,
8080
message: "Couldn't parse config".to_string(),
8181
extra: format!("{:?}", error),
82-
})
82+
});
8383
}
8484
};
8585

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ use colored::*;
33
use inquire::{InquireError, Select};
44
use log::{debug, error, info, log_enabled, warn};
55
use radio_libs::{
6+
Cli, Config, ConfigError, Station, Version,
67
browser::{Browser, StationCache},
7-
perror, Cli, Config, ConfigError, Station, Version,
8+
perror,
89
};
910
use std::io::Write;
1011
use std::process::{Command, Stdio};

0 commit comments

Comments
 (0)