@@ -74,9 +74,9 @@ mod zlib {
74
74
struct PyFuncCompressArgs {
75
75
#[ pyarg( positional) ]
76
76
data : ArgBytesLike ,
77
- #[ pyarg( any, default = " Level::new(Z_DEFAULT_COMPRESSION)" ) ]
77
+ #[ pyarg( any, default = Level :: new( Z_DEFAULT_COMPRESSION ) ) ]
78
78
level : Level ,
79
- #[ pyarg( any, default = " ArgPrimitiveIndex { value: MAX_WBITS }" ) ]
79
+ #[ pyarg( any, default = ArgPrimitiveIndex { value: MAX_WBITS } ) ]
80
80
wbits : ArgPrimitiveIndex < i8 > ,
81
81
}
82
82
@@ -269,9 +269,9 @@ mod zlib {
269
269
struct PyFuncDecompressArgs {
270
270
#[ pyarg( positional) ]
271
271
data : ArgBytesLike ,
272
- #[ pyarg( any, default = " ArgPrimitiveIndex { value: MAX_WBITS }" ) ]
272
+ #[ pyarg( any, default = ArgPrimitiveIndex { value: MAX_WBITS } ) ]
273
273
wbits : ArgPrimitiveIndex < i8 > ,
274
- #[ pyarg( any, default = " ArgPrimitiveIndex { value: DEF_BUF_SIZE }" ) ]
274
+ #[ pyarg( any, default = ArgPrimitiveIndex { value: DEF_BUF_SIZE } ) ]
275
275
bufsize : ArgPrimitiveIndex < usize > ,
276
276
}
277
277
@@ -299,7 +299,7 @@ mod zlib {
299
299
300
300
#[ derive( FromArgs ) ]
301
301
struct DecompressobjArgs {
302
- #[ pyarg( any, default = " ArgPrimitiveIndex { value: MAX_WBITS }" ) ]
302
+ #[ pyarg( any, default = ArgPrimitiveIndex { value: MAX_WBITS } ) ]
303
303
wbits : ArgPrimitiveIndex < i8 > ,
304
304
#[ pyarg( any, optional) ]
305
305
zdict : OptionalArg < ArgBytesLike > ,
@@ -450,16 +450,16 @@ mod zlib {
450
450
#[ derive( FromArgs ) ]
451
451
#[ allow( dead_code) ] // FIXME: use args
452
452
struct CompressobjArgs {
453
- #[ pyarg( any, default = " Level::new(Z_DEFAULT_COMPRESSION)" ) ]
453
+ #[ pyarg( any, default = Level :: new( Z_DEFAULT_COMPRESSION ) ) ]
454
454
level : Level ,
455
455
// only DEFLATED is valid right now, it's w/e
456
- #[ pyarg( any, default = " DEFLATED" ) ]
456
+ #[ pyarg( any, default = DEFLATED ) ]
457
457
method : i32 ,
458
- #[ pyarg( any, default = " ArgPrimitiveIndex { value: MAX_WBITS }" ) ]
458
+ #[ pyarg( any, default = ArgPrimitiveIndex { value: MAX_WBITS } ) ]
459
459
wbits : ArgPrimitiveIndex < i8 > ,
460
- #[ pyarg( any, name = "memLevel" , default = " DEF_MEM_LEVEL" ) ]
460
+ #[ pyarg( any, name = "memLevel" , default = DEF_MEM_LEVEL ) ]
461
461
mem_level : u8 ,
462
- #[ pyarg( any, default = " Z_DEFAULT_STRATEGY" ) ]
462
+ #[ pyarg( any, default = Z_DEFAULT_STRATEGY ) ]
463
463
strategy : i32 ,
464
464
#[ pyarg( any, optional) ]
465
465
zdict : Option < ArgBytesLike > ,
0 commit comments