1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +02:00

Fix clippy lints

This commit is contained in:
Roderick van Domburg 2022-05-21 21:36:56 +02:00
parent 3d298768b3
commit 2a3e248bba
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451
7 changed files with 30 additions and 40 deletions

View file

@ -8,17 +8,14 @@ fn main() {
flags.toggle(ConstantsFlags::REBUILD_ON_HEAD_CHANGE);
generate_cargo_keys(ConstantsFlags::all()).expect("Unable to generate the cargo keys!");
let build_id: String;
match env::var("SOURCE_DATE_EPOCH") {
Ok(val) => build_id = val,
Err(_) => {
build_id = rand::thread_rng()
.sample_iter(Alphanumeric)
.take(8)
.map(char::from)
.collect()
}
}
let build_id = match env::var("SOURCE_DATE_EPOCH") {
Ok(val) => val,
Err(_) => rand::thread_rng()
.sample_iter(Alphanumeric)
.take(8)
.map(char::from)
.collect(),
};
println!("cargo:rustc-env=LIBRESPOT_BUILD_ID={}", build_id);
}