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

chore: fix a clippy warning #871

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

coolkiid
Copy link
Contributor

remove .clone() from format.buffer_size.clone() to make clippy happy ;)

warning: using `clone` on type `SupportedBufferSize` which implements the `Copy` trait                                                                                                                     
   --> src\host\wasapi\device.rs:455:46
    |
455 | ...                   buffer_size: format.buffer_size.clone(),
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `format.buffer_size`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
    = note: `#[warn(clippy::clone_on_copy)]` on by default

Copy link
Member

@est31 est31 left a comment

Choose a reason for hiding this comment

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

Thanks

@est31 est31 merged commit ef95a03 into RustAudio:master Mar 28, 2024
15 checks passed
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