Skip to content

Commit 1757917

Browse files
committed
derive Debug for marker types
- this will also implement Debug for the derived Configuration type
1 parent 4673360 commit 1757917

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/config.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -200,46 +200,46 @@ where
200200
}
201201

202202
/// Encodes all integer types in big endian.
203-
#[derive(Copy, Clone)]
203+
#[derive(Copy, Clone, Debug)]
204204
pub struct BigEndian {}
205205

206206
impl InternalEndianConfig for BigEndian {
207207
const ENDIAN: Endianness = Endianness::Big;
208208
}
209209

210210
/// Encodes all integer types in little endian.
211-
#[derive(Copy, Clone)]
211+
#[derive(Copy, Clone, Debug)]
212212
pub struct LittleEndian {}
213213

214214
impl InternalEndianConfig for LittleEndian {
215215
const ENDIAN: Endianness = Endianness::Little;
216216
}
217217

218218
/// Use fixed-size integer encoding.
219-
#[derive(Copy, Clone)]
219+
#[derive(Copy, Clone, Debug)]
220220
pub struct Fixint {}
221221

222222
impl InternalIntEncodingConfig for Fixint {
223223
const INT_ENCODING: IntEncoding = IntEncoding::Fixed;
224224
}
225225

226226
/// Use variable integer encoding.
227-
#[derive(Copy, Clone)]
227+
#[derive(Copy, Clone, Debug)]
228228
pub struct Varint {}
229229

230230
impl InternalIntEncodingConfig for Varint {
231231
const INT_ENCODING: IntEncoding = IntEncoding::Variable;
232232
}
233233

234234
/// Sets an unlimited byte limit.
235-
#[derive(Copy, Clone)]
235+
#[derive(Copy, Clone, Debug)]
236236
pub struct NoLimit {}
237237
impl InternalLimitConfig for NoLimit {
238238
const LIMIT: Option<usize> = None;
239239
}
240240

241241
/// Sets the byte limit to N.
242-
#[derive(Copy, Clone)]
242+
#[derive(Copy, Clone, Debug)]
243243
pub struct Limit<const N: usize> {}
244244
impl<const N: usize> InternalLimitConfig for Limit<N> {
245245
const LIMIT: Option<usize> = Some(N);

0 commit comments

Comments
 (0)