Attempt at fixing dead code lints

This commit is contained in:
Segev Finer
2017-01-27 11:33:24 +02:00
parent 4186037aaa
commit 450554ebf1
6 changed files with 106 additions and 68 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ unsafe fn init_state() -> *mut backtrace_state {
static mut STATE: *mut backtrace_state = ptr::null_mut();
if !STATE.is_null() { return STATE }
let filename = match ::sys::backtrace::get_executable_filename() {
let filename = match ::sys::backtrace::gnu::get_executable_filename() {
Ok((filename, file)) => {
// filename is purposely leaked here since libbacktrace requires
// it to stay allocated permanently, file is also leaked so that