1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 10:19:27 +02:00

Replace version functions by constants

This commit is contained in:
johannesd3 2021-02-09 19:42:56 +01:00
parent b72485cf46
commit 09e506ed66
5 changed files with 20 additions and 50 deletions

View file

@ -225,10 +225,10 @@ fn setup(args: &[String]) -> Setup {
info!(
"librespot {} ({}). Built on {}. Build ID: {}",
version::short_sha(),
version::commit_date(),
version::short_now(),
version::build_id()
version::SHA_SHORT,
version::COMMIT_DATE,
version::BUILD_DATE,
version::BUILD_ID
);
let backend_name = matches.opt_str("backend");
@ -329,7 +329,7 @@ fn setup(args: &[String]) -> Setup {
let device_id = device_id(&name);
SessionConfig {
user_agent: version::version_string(),
user_agent: version::VERSION_STRING.to_string(),
device_id: device_id,
proxy: matches.opt_str("proxy").or(std::env::var("http_proxy").ok()).map(
|s| {