Skip to content

Commit 8e6d7ee

Browse files
committed
migrate to marker structs without fields
1 parent 1757917 commit 8e6d7ee

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
@@ -201,46 +201,46 @@ where
201201

202202
/// Encodes all integer types in big endian.
203203
#[derive(Copy, Clone, Debug)]
204-
pub struct BigEndian {}
204+
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.
211211
#[derive(Copy, Clone, Debug)]
212-
pub struct LittleEndian {}
212+
pub struct LittleEndian;
213213

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)