Skip to content

Commit 99eee51

Browse files
committed
Cleanups
1 parent eae01e5 commit 99eee51

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/symbolize/gimli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ lazy_static! {
341341
// leverage the structures built when constructing `addr2line::Context`s to
342342
// get nice speedups. If we didn't have this cache, that amortization would
343343
// never happen, and symbolicating backtraces would be ssssllllooooowwww.
344-
// static MAPPINGS_CACHE: RefCell<Vec<(PathBuf, Mapping)>> = RefCell::new(Vec::with_capacity(MAPPINGS_CACHE_SIZE));
345-
static ref MAPPINGS_CACHE: Mutex<Vec<(PathBuf, Mapping)>> = Mutex::new(Vec::with_capacity(MAPPINGS_CACHE_SIZE));
344+
static ref MAPPINGS_CACHE: Mutex<Vec<(PathBuf, Mapping)>>
345+
= Mutex::new(Vec::with_capacity(MAPPINGS_CACHE_SIZE));
346346
}
347347

348348
pub fn clear_symbol_cache() {

src/symbolize/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ cfg_if::cfg_if! {
462462
use self::gimli::resolve as resolve_imp;
463463
use self::gimli::Symbol as SymbolImp;
464464
use self::gimli::clear_symbol_cache as clear_imp;
465-
// pub use self::gimli::clear_symbol_cache as clear_symbol_cache;
466465
// Note that we only enable coresymbolication on iOS when debug assertions
467466
// are enabled because it's helpful in debug mode but it looks like apps get
468467
// rejected from the app store if they use this API, see #92 for more info

0 commit comments

Comments
 (0)