File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ impl Profile {
265
265
266
266
fn add_mapping ( & mut self , mapping : & api:: Mapping ) -> Result < PProfId , FullError > {
267
267
// 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 {
269
269
return Err ( FullError ) ;
270
270
}
271
271
@@ -534,7 +534,7 @@ impl From<&Profile> for pprof::Profile {
534
534
. map ( |( index, location) | pprof:: Location {
535
535
id : ( index + 1 ) as u64 ,
536
536
mapping_id : location. mapping_id ,
537
- address : location. address as u64 ,
537
+ address : location. address ,
538
538
line : location. line . clone ( ) ,
539
539
is_folded : location. is_folded ,
540
540
} )
You can’t perform that action at this time.
0 commit comments