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

Merged
merged 1 commit into from Jun 4, 2023
Merged

Fix CI failure #616

merged 1 commit into from Jun 4, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Jun 4, 2023

This fixes CI failure due to new rust lint.

warning: unnecessary allocation, use `&mut` instead
   --> tests/test_buf_mut.rs:247:5
    |
247 |     Box::new(Special).put_u8(b'x');
    |     ^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_allocation)]` on by default

warning: unnecessary allocation, use `&mut` instead
   --> tests/test_buf.rs:102:16
    |
102 |     assert_eq!(Box::new(Special).get_u8(), b'x');
    |                ^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_allocation)]` on by default

```
warning: unnecessary allocation, use `&mut` instead
   --> tests/test_buf_mut.rs:247:5
    |
247 |     Box::new(Special).put_u8(b'x');
    |     ^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_allocation)]` on by default

warning: unnecessary allocation, use `&mut` instead
   --> tests/test_buf.rs:102:16
    |
102 |     assert_eq!(Box::new(Special).get_u8(), b'x');
    |                ^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_allocation)]` on by default
```
@taiki-e taiki-e requested a review from Darksonn June 4, 2023 15:13
@taiki-e taiki-e merged commit c7756c3 into master Jun 4, 2023
15 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch June 4, 2023 16:05
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.

None yet

2 participants