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

rust: fix clippy ptr_arg warnings #10337

Closed
wants to merge 1 commit into from

Conversation

catenacyber
Copy link
Contributor

Link to redmine ticket:
None

Describe changes:

  • fix clippy newest warnings

cc @jasonish

#10336 with more induced fixes

error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
   --> src/dns/log.rs:371:29
    |
371 | pub fn dns_print_addr(addr: &Vec<u8>) -> std::string::String {
    |                             ^^^^^^^^ help: change this to: `&[u8]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
@victorjulien victorjulien added this to the 8.0 milestone Feb 8, 2024
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 18251

@catenacyber catenacyber mentioned this pull request Feb 8, 2024
This was referenced Feb 9, 2024
@victorjulien victorjulien removed this from the 8.0 milestone Feb 9, 2024
@victorjulien
Copy link
Member

Merged as part of #10345, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants