Skip to content

Commit d658c14

Browse files
committed
clippy fixes
1 parent be909d4 commit d658c14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ros_file_support.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ where
134134
DefaultAllocator: Allocator<R, D2, D2>,
135135
DefaultAllocator: Allocator<R, D2>,
136136
{
137-
if ros_matrix.rows as usize != D1::dim() {
137+
if ros_matrix.rows != D1::dim() {
138138
return Err(Error::BadMatrixSize);
139139
}
140-
if ros_matrix.cols as usize != D2::dim() {
140+
if ros_matrix.cols != D2::dim() {
141141
return Err(Error::BadMatrixSize);
142142
}
143-
if ros_matrix.data.len() != (ros_matrix.rows * ros_matrix.cols) as usize {
143+
if ros_matrix.data.len() != (ros_matrix.rows * ros_matrix.cols) {
144144
return Err(Error::BadMatrixSize);
145145
}
146146
let data_converted: Vec<R> = ros_matrix

0 commit comments

Comments
 (0)