Skip to content

Commit a6e91e7

Browse files
CodingAnarchyclaude
andcommitted
fix: Add Copy trait to JobStatus and BatchStatus enums
Enables passing enum values by value in MySQL batch operations instead of borrowing, fixing compilation error in mysql.rs:530. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f7d19dd commit a6e91e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl Default for PartialFailureMode {
4343
}
4444

4545
/// Current status of a job batch.
46-
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
46+
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
4747
pub enum BatchStatus {
4848
/// Batch is waiting to be processed.
4949
Pending,

src/job.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub type JobId = Uuid;
4141
/// let is_final = matches!(status, JobStatus::Completed | JobStatus::Dead | JobStatus::TimedOut | JobStatus::Archived);
4242
/// assert!(is_final);
4343
/// ```
44-
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
44+
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Hash)]
4545
pub enum JobStatus {
4646
/// Job is waiting to be processed by a worker.
4747
Pending,

0 commit comments

Comments
 (0)