derive Clone for SortResult

This commit is contained in:
jacekpoz 2024-04-10 13:04:22 +02:00
parent b8ec6963be
commit 9bc0a4e198
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -35,7 +35,7 @@ fn swap(list: &mut [u64], i: usize, j: usize, swaps: &mut u64) {
list.swap(i, j); list.swap(i, j);
} }
#[derive(Debug)] #[derive(Debug, Clone)]
pub struct SortResult { pub struct SortResult {
pub comparisons: u64, pub comparisons: u64,
pub swaps: u64, pub swaps: u64,