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 #134

Merged
merged 2 commits into from
May 13, 2024
Merged

Fix CI failure #134

merged 2 commits into from
May 13, 2024

Conversation

taiki-e
Copy link
Contributor

@taiki-e taiki-e commented May 13, 2024

No description provided.

```
error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/link.rs:236:9
    |
236 |         self.name = name.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `name.clone_into(&mut self.name)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
    = note: `-D clippy::assigning-clones` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::assigning_clones)]`
```
```
error: unnecessary use of `get(&j.parent.link).is_some()`
   --> src/urdf.rs:274:41
    |
274 |             if parent_link_name_to_node.get(&j.parent.link).is_some() {
    |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `contains_key(&j.parent.link)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
    = note: `-D clippy::unnecessary-get-then-check` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_get_then_check)]`

error: unnecessary use of `get(&l.name).is_none()`
   --> src/urdf.rs:365:16
    |
365 |         if map.get(&l.name).is_none() {
    |            ----^^^^^^^^^^^^^^^^^^^^^^
    |            |
    |            help: replace it with: `!map.contains_key(&l.name)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check

error: unnecessary use of `get(&l.name).is_none()`
   --> src/urdf.rs:378:16
    |
378 |         if map.get(&l.name).is_none() {
    |            ----^^^^^^^^^^^^^^^^^^^^^^
    |            |
    |            help: replace it with: `!map.contains_key(&l.name)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
```
@taiki-e taiki-e requested a review from OTL May 13, 2024 03:57
@taiki-e taiki-e enabled auto-merge (rebase) May 13, 2024 03:58
Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 67.37%. Comparing base (dbb3adc) to head (5aea821).

Files Patch % Lines
src/urdf.rs 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   66.47%   67.37%   +0.90%     
==========================================
  Files          13       13              
  Lines        1578     1548      -30     
  Branches     1578     1548      -30     
==========================================
- Hits         1049     1043       -6     
+ Misses        498      486      -12     
+ Partials       31       19      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@OTL OTL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@taiki-e taiki-e merged commit 8bf4388 into main May 13, 2024
9 of 10 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch May 13, 2024 09:43
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