Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI failure #60

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Fix CI failure #60

merged 2 commits into from
Jan 15, 2025

Conversation

taiki-e
Copy link

@taiki-e taiki-e commented Jan 14, 2025

test and clippy jobs are now failing to install ROS2 due to they use ubuntu-latest runner that recently updated to ubuntu-24.04.
https://github.com/smilerobotics/tf_rosrust/actions/runs/12734634372/job/35492439307

@taiki-e taiki-e requested a review from OTL January 14, 2025 11:00
@taiki-e taiki-e enabled auto-merge (rebase) January 14, 2025 11:01
```
error: this `map_or` is redundant
   --> tf_rosrust/src/tf_buffer.rs:95:24
    |
95  |                       if self
    |  ________________________^
96  | |                         .transform_data
97  | |                         .get(&TfGraphNode {
98  | |                             child: v.clone(),
99  | |                             parent: current_node.clone(),
100 | |                         })
101 | |                         .map_or(false, |chain| chain.has_valid_transform(time))
    | |_______________________________________________________________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
    = note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
help: use is_some_and instead
    |
95  ~                     if self
96  +                         .transform_data
97  +                         .get(&TfGraphNode {
98  +                             child: v.clone(),
99  +                             parent: current_node.clone(),
100 +                         }).is_some_and(|chain| chain.has_valid_transform(time))
    |
```
@taiki-e taiki-e merged commit 507b297 into main Jan 15, 2025
6 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch January 15, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants