Skip to content

Update dependencies and fix deprecation warnings#50

Merged
cfuehrmann merged 2 commits intomainfrom
update-dependencies
Oct 30, 2025
Merged

Update dependencies and fix deprecation warnings#50
cfuehrmann merged 2 commits intomainfrom
update-dependencies

Conversation

@cfuehrmann
Copy link
Owner

Summary

  • Update project dependencies to latest versions
  • Replace deprecated Command::cargo_bin() with recommended cargo_bin_cmd! macro

Changes

This PR updates the test suite to use the modern cargo_bin_cmd! macro instead of the deprecated Command::cargo_bin() method, which was flagged for incompatibility with custom cargo build directories.

Technical Details

  • Replaced Command::cargo_bin("nutriterm") with cargo_bin_cmd!("nutriterm") across all test files
  • Added use assert_cmd::cargo::cargo_bin_cmd; import to each test file for cleaner code
  • Removed obsolete .unwrap() calls since the macro returns Command directly
  • Removed unused assert_cmd::Command imports

Testing

  • All 37 tests pass
  • No deprecation warnings
  • Clean cargo clippy run with -D warnings

Update all test files to use the recommended cargo_bin_cmd! macro
instead of the deprecated Command::cargo_bin() method for better
compatibility with custom cargo build directories.

- Replace Command::cargo_bin() with cargo_bin_cmd! in all test files
- Add use assert_cmd::cargo::cargo_bin_cmd import to each test file
- Remove obsolete .unwrap() calls as the macro returns Command directly
- Remove unused assert_cmd::Command imports
@cfuehrmann cfuehrmann merged commit b0233a7 into main Oct 30, 2025
5 checks passed
@cfuehrmann cfuehrmann deleted the update-dependencies branch October 30, 2025 15:31
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.

1 participant