Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ecalifornica
Copy link
Contributor

@ecalifornica ecalifornica commented Dec 17, 2025

Feeds clippy, part of #1961


Important

Fix Clippy lint by replacing cloned() with copied() for Copy types in multiple files.

  • Lint Configuration:
    • Add cloned_instead_of_copied to Cargo.toml to enforce using copied() instead of cloned() for Copy types.
  • Code Changes:
    • Replace cloned() with copied() in tensorzero-core/src/cache.rs for finish_reason.
    • Replace cloned() with copied() in tensorzero-core/src/evaluations/mod.rs for json_mode.
    • Replace cloned() with copied() in tensorzero-core/src/variant/best_of_n_sampling.rs, dicl.rs, and mixture_of_n.rs for json_mode.
    • Replace cloned() with concat() in tensorzero-core/src/variant/mod.rs tests for DUMMY_STREAMING_RESPONSE.
    • Replace cloned() with copied() in tensorzero-core/tests/e2e/providers/batch.rs for inference_ids.
  • Misc:

This description was created by Ellipsis for 246e1d5. You can customize this summary. It will automatically update as commits are pushed.

@Aaron1011 Aaron1011 added this pull request to the merge queue Dec 17, 2025
Merged via the queue into tensorzero:main with commit fa59eca Dec 17, 2025
45 checks passed
@ecalifornica ecalifornica deleted the ecalifornica-clippy-fix-cloned-copied branch December 18, 2025 15:12
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