mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Make backtrace var conditional
This commit is contained in:
parent
67dabcdd8e
commit
17d39dffa9
1 changed files with 3 additions and 1 deletions
|
@ -355,7 +355,9 @@ impl Future for Main {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
env::set_var("RUST_BACKTRACE", "full");
|
||||
if env::var("RUST_BACKTRACE").is_err() {
|
||||
env::set_var("RUST_BACKTRACE", "full")
|
||||
}
|
||||
let mut core = Core::new().unwrap();
|
||||
let handle = core.handle();
|
||||
|
||||
|
|
Loading…
Reference in a new issue