Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Nov 14, 2024
1 parent f063f71 commit 4aa2192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion node-hub/dora-rerun/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub fn lib_main() -> Result<()> {
}
}

update_visualization(&chain, &rec, &id, &positions)?;
update_visualization(chain, &rec, &id, &positions)?;
} else {
println!("Could not find chain for {}", id);
}
Expand Down
4 changes: 2 additions & 2 deletions node-hub/dora-rerun/src/urdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ pub fn update_visualization(
id: &str,
positions: &[f32],
) -> Result<()> {
chain.set_joint_positions_clamped(&positions);
chain.set_joint_positions_clamped(positions);

chain.update_transforms();
chain.update_link_transforms();

for link_name in chain.iter_links().map(|link| link.name.clone()) {
let link = chain.find_link(&link_name).context("Could not find link")?;
let entity_path = get_entity_path(&link, &id);
let entity_path = get_entity_path(link, id);
let link_to_world = link
.world_transform()
.context("Could not get world transform")?;
Expand Down

0 comments on commit 4aa2192

Please sign in to comment.