Skip to content

Commit b1d22fb

Browse files
author
Kai Luo
committed
Rename create_map -> create_mapping
1 parent 8ece21b commit b1d22fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/symbolize/gimli.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,14 @@ struct LibrarySegment {
299299
}
300300

301301
#[cfg(target_os = "aix")]
302-
fn create_map(lib: &Library) -> Option<Mapping> {
302+
fn create_mapping(lib: &Library) -> Option<Mapping> {
303303
let name = &lib.name;
304304
let member_name = &lib.member_name;
305305
Mapping::new(name.as_ref(), member_name)
306306
}
307307

308308
#[cfg(not(target_os = "aix"))]
309-
fn create_map(lib: &Library) -> Option<Mapping> {
309+
fn create_mapping(lib: &Library) -> Option<Mapping> {
310310
let name = &lib.name;
311311
Mapping::new(name.as_ref())
312312
}
@@ -391,7 +391,7 @@ impl Cache {
391391
// When the mapping is not in the cache, create a new mapping,
392392
// insert it into the front of the cache, and evict the oldest cache
393393
// entry if necessary.
394-
let mapping = create_map(&self.libraries[lib])?;
394+
let mapping = create_mapping(&self.libraries[lib])?;
395395

396396
if self.mappings.len() == MAPPINGS_CACHE_SIZE {
397397
self.mappings.pop();

0 commit comments

Comments
 (0)