Merge pull request #552 from carljm/debug-stamps
Some checks are pending
Book / Book (push) Waiting to run
Book / Deploy (push) Blocked by required conditions
Test / Test (false, beta) (push) Waiting to run
Test / Test (false, stable) (push) Waiting to run
Test / Test (true, nightly) (push) Waiting to run
Test / Miri (push) Waiting to run
Test / Benchmarks (push) Waiting to run

Require Debug for C::Stamps
This commit is contained in:
Niko Matsakis 2024-08-05 07:34:35 +00:00 committed by GitHub
commit 994c988739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
use std::fmt::Debug;
use std::ops::{Deref, DerefMut};
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub struct Array<T, const N: usize> {
data: [T; N],
}

View file

@ -35,7 +35,7 @@ pub trait Configuration: Any {
type Fields: Send + Sync;
/// A array of [`StampedValue<()>`](`StampedValue`) tuples, one per each of the value fields.
type Stamps: Send + Sync + DerefMut<Target = [Stamp]>;
type Stamps: Send + Sync + fmt::Debug + DerefMut<Target = [Stamp]>;
}
pub struct JarImpl<C: Configuration> {