Skip to content

Commit 8ea4cfa

Browse files
committed
back to 1.85
1 parent e8b8432 commit 8ea4cfa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ros_pointcloud2/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ros_pointcloud2"
3-
version = "1.0.0-rc.1"
3+
version = "1.0.0-rc.2"
44
edition = "2024"
55
authors = ["Christopher Sieh <stelzo@steado.de>"]
66
description = "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]
3333
rayon = { version = "1", optional = true }

ros_pointcloud2/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)