File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " ros_pointcloud2"
3- version = " 1.0.0-rc.1 "
3+ version = " 1.0.0-rc.2 "
44edition = " 2024"
55authors = [" Christopher Sieh <stelzo@steado.de>" ]
66description = " Customizable conversions for working with sensor_msgs/PointCloud2."
@@ -27,7 +27,7 @@ exclude = [
2727 " **/doc/**" ,
2828 " **/ensure_no_std/**" ,
2929]
30- rust-version = " 1.87 "
30+ rust-version = " 1.85 "
3131
3232[dependencies ]
3333rayon = { version = " 1" , optional = true }
Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ impl PointCloud2MsgBuilder {
614614 return Err ( ConversionError :: InvalidFieldFormat ) ;
615615 }
616616
617- if ! ( self . data . len ( ) as u32 ) . is_multiple_of ( self . point_step ) {
617+ if ( self . data . len ( ) as u32 ) % self . point_step != 0 {
618618 return Err ( ConversionError :: DataLengthMismatch ) ;
619619 }
620620
@@ -1165,12 +1165,12 @@ impl PointCloud2Msg {
11651165 return Err ( ConversionError :: UnsupportedSliceView ) ;
11661166 }
11671167
1168- if ! self . data . len ( ) . is_multiple_of ( c_size) {
1168+ if self . data . len ( ) % c_size != 0 {
11691169 return Err ( ConversionError :: DataLengthMismatch ) ;
11701170 }
11711171
11721172 let ptr = self . data . as_ptr ( ) as * const C ;
1173- if ! ( ptr as usize ) . is_multiple_of ( core:: mem:: align_of :: < C > ( ) ) {
1173+ if ( ptr as usize ) % core:: mem:: align_of :: < C > ( ) != 0 {
11741174 return Err ( ConversionError :: UnalignedBuffer ) ;
11751175 }
11761176
You can’t perform that action at this time.
0 commit comments