Skip to content

Conversation

cakebaker
Copy link
Contributor

This PR restricts two test functions to avoid the following "unused variable" warnings on FreeBSD:

warning: unused variable: `stdout_str`
      --> tests/by-util/test_cp.rs:3225:9
       |
  3225 |     let stdout_str = result.stdout_str();
       |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout_str`
       |
       = note: `#[warn(unused_variables)]` on by default
  
  warning: unused variable: `stdout_str`
      --> tests/by-util/test_cp.rs:3261:9
       |
  3261 |     let stdout_str = result.stdout_str();
       |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout_str`
  

@tertsdiepraam tertsdiepraam merged commit 98ad01b into uutils:main Nov 1, 2023
@cakebaker cakebaker deleted the cp_fix_unused_variable_warnings branch November 1, 2023 08:24
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