File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl PProfBuilder {
3030 if let Some ( v) = v {
3131 return * v;
3232 }
33- assert ! ( self . strings. len( ) != self . profile. string_table. len( ) + 1 ) ;
33+ assert_ne ! ( self . strings. len( ) , self . profile. string_table. len( ) + 1 ) ;
3434 let id: i64 = self . strings . len ( ) as i64 ;
3535 self . strings . insert ( s. to_owned ( ) , id) ;
3636 self . profile . string_table . push ( s. to_owned ( ) ) ;
@@ -42,7 +42,7 @@ impl PProfBuilder {
4242 if let Some ( v) = v {
4343 return * v;
4444 }
45- assert ! ( self . functions. len( ) != self . profile. function. len( ) + 1 ) ;
45+ assert_ne ! ( self . functions. len( ) , self . profile. function. len( ) + 1 ) ;
4646 let id: u64 = self . functions . len ( ) as u64 + 1 ;
4747 let f = Function {
4848 id,
@@ -61,7 +61,7 @@ impl PProfBuilder {
6161 if let Some ( v) = v {
6262 return * v;
6363 }
64- assert ! ( self . locations. len( ) != self . profile. location. len( ) + 1 ) ;
64+ assert_ne ! ( self . locations. len( ) , self . profile. location. len( ) + 1 ) ;
6565 let id: u64 = self . locations . len ( ) as u64 + 1 ;
6666 let l = Location {
6767 id,
You can’t perform that action at this time.
0 commit comments