Fuck Cargo.lock, we don't need that shit
This commit is contained in:
parent
8466245497
commit
82ec5c3b7a
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/target
|
||||
uberbot_*.toml
|
||||
uberbot.toml
|
||||
Cargo.lock
|
1534
Cargo.lock
generated
1534
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -61,11 +61,11 @@ async fn main() -> anyhow::Result<()> {
|
|||
.with_env_filter(EnvFilter::from_env("UBERBOT_LOG"))
|
||||
.init();
|
||||
|
||||
let mut file = File::open("uberbot.toml").unwrap();
|
||||
let mut file = File::open("uberbot.toml")?;
|
||||
let mut client_conf = String::new();
|
||||
file.read_to_string(&mut client_conf).unwrap();
|
||||
file.read_to_string(&mut client_conf)?;
|
||||
|
||||
let client_config: ClientConf = toml::from_str(&client_conf).unwrap();
|
||||
let client_config: ClientConf = toml::from_str(&client_conf)?;
|
||||
|
||||
let spotify_creds = Credentials::new(
|
||||
&client_config.spotify_client_id,
|
||||
|
|
Loading…
Reference in a new issue