Skip to content

Commit

Permalink
braidz-export-rrd: compiler and clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Mar 14, 2024
1 parent daa4ef2 commit d520ac6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions braidz-export-rrd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ type MyUndistortionCache = undistortion::UndistortionCache;
#[cfg(not(feature = "undistort-images"))]
type MyUndistortionCache = SimpleUndistortionCache;

#[derive(Debug, Clone)]
#[allow(dead_code)]
#[derive(Clone)]
struct SimpleUndistortionCache {
intrinsics: opencv_ros_camera::RosOpenCvIntrinsics<f64>,
}
Expand Down Expand Up @@ -280,7 +280,7 @@ impl OfflineBraidzRerunLogger {
let dt = row.cam_received_timestamp.as_f64();
self.frametimes
.entry(cam_data.camn)
.or_insert_with(Vec::new)
.or_default()
.push((row.frame, dt));

self.rec.set_time_seconds(SECONDS_TIMELINE, dt);
Expand All @@ -305,7 +305,7 @@ impl OfflineBraidzRerunLogger {
"must call in frame order for a given entity path"
);
self.rec
.log(ent_path, &rerun::Points2D::new(&empty_position))?;
.log(ent_path, &rerun::Points2D::new(empty_position))?;
}
}
};
Expand Down Expand Up @@ -335,7 +335,7 @@ impl OfflineBraidzRerunLogger {
"must call in frame order for a given entity path"
);
self.rec
.log(ent_path, &rerun::Points2D::new(&empty_position))?;
.log(ent_path, &rerun::Points2D::new(empty_position))?;
}
}
}
Expand Down Expand Up @@ -396,7 +396,7 @@ impl OfflineBraidzRerunLogger {
}
self.rec.log(
format!("world/obj_id/{}", obj_id),
&rerun::Points3D::new(&empty_position),
&rerun::Points3D::new(empty_position),
)?;
}
Ok(())
Expand Down

0 comments on commit d520ac6

Please sign in to comment.