@@ -201,46 +201,46 @@ where
201
201
202
202
/// Encodes all integer types in big endian.
203
203
#[ derive( Copy , Clone , Debug ) ]
204
- pub struct BigEndian { }
204
+ pub struct BigEndian ;
205
205
206
206
impl InternalEndianConfig for BigEndian {
207
207
const ENDIAN : Endianness = Endianness :: Big ;
208
208
}
209
209
210
210
/// Encodes all integer types in little endian.
211
211
#[ derive( Copy , Clone , Debug ) ]
212
- pub struct LittleEndian { }
212
+ pub struct LittleEndian ;
213
213
214
214
impl InternalEndianConfig for LittleEndian {
215
215
const ENDIAN : Endianness = Endianness :: Little ;
216
216
}
217
217
218
218
/// Use fixed-size integer encoding.
219
219
#[ derive( Copy , Clone , Debug ) ]
220
- pub struct Fixint { }
220
+ pub struct Fixint ;
221
221
222
222
impl InternalIntEncodingConfig for Fixint {
223
223
const INT_ENCODING : IntEncoding = IntEncoding :: Fixed ;
224
224
}
225
225
226
226
/// Use variable integer encoding.
227
227
#[ derive( Copy , Clone , Debug ) ]
228
- pub struct Varint { }
228
+ pub struct Varint ;
229
229
230
230
impl InternalIntEncodingConfig for Varint {
231
231
const INT_ENCODING : IntEncoding = IntEncoding :: Variable ;
232
232
}
233
233
234
234
/// Sets an unlimited byte limit.
235
235
#[ derive( Copy , Clone , Debug ) ]
236
- pub struct NoLimit { }
236
+ pub struct NoLimit ;
237
237
impl InternalLimitConfig for NoLimit {
238
238
const LIMIT : Option < usize > = None ;
239
239
}
240
240
241
241
/// Sets the byte limit to N.
242
242
#[ derive( Copy , Clone , Debug ) ]
243
- pub struct Limit < const N : usize > { }
243
+ pub struct Limit < const N : usize > ;
244
244
impl < const N : usize > InternalLimitConfig for Limit < N > {
245
245
const LIMIT : Option < usize > = Some ( N ) ;
246
246
}
0 commit comments