Fuck Cargo.lock, we don't need that shit

This commit is contained in:
lemon-sh 2021-12-28 23:41:51 +01:00
parent 8466245497
commit 82ec5c3b7a
3 changed files with 4 additions and 1537 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/target
uberbot_*.toml
uberbot.toml
Cargo.lock

1534
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -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,