mirror of
https://github.com/oSumAtrIX/free-librespot.git
synced 2025-12-19 09:54:25 +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…
Add table
Reference in a new issue