Skip to content

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
@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.

3 participants