Skip to content

Commit

Permalink
RunningProgress can't be Clone, since it will panic on the second drop.
Browse files Browse the repository at this point in the history
When dropping, we remove the key from hash table and panic if it's not there.
  • Loading branch information
nfachan committed Oct 24, 2024
1 parent 0bc0e49 commit 44d26e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/maelstrom-client-process/src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ where
}
}

#[derive(Clone, Debug)]
#[derive(Debug)]
pub struct RunningProgress {
name: String,
progress: Arc<AtomicU64>,
Expand Down

0 comments on commit 44d26e1

Please sign in to comment.