Skip to content

Commit 18fa4a8

Browse files
committed
remmove unnecessary cast to usize
1 parent 1e3672e commit 18fa4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

profiling/src/profile/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ impl Profile {
265265

266266
fn add_mapping(&mut self, mapping: &api::Mapping) -> Result<PProfId, FullError> {
267267
// todo: do full checks as part of intern/dedup
268-
if self.strings.len() >= CONTAINER_MAX as usize || self.mappings.len() >= CONTAINER_MAX {
268+
if self.strings.len() >= CONTAINER_MAX || self.mappings.len() >= CONTAINER_MAX {
269269
return Err(FullError);
270270
}
271271

@@ -534,7 +534,7 @@ impl From<&Profile> for pprof::Profile {
534534
.map(|(index, location)| pprof::Location {
535535
id: (index + 1) as u64,
536536
mapping_id: location.mapping_id,
537-
address: location.address as u64,
537+
address: location.address,
538538
line: location.line.clone(),
539539
is_folded: location.is_folded,
540540
})

0 commit comments

Comments
 (0)