File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ mod _ssl {
121
121
#[ pyattr]
122
122
const PROTO_MAXIMUM_SUPPORTED : i32 = ProtoVersion :: MaxSupported as i32 ;
123
123
#[ pyattr]
124
- const OP_ALL : libc:: c_ulong = sys:: SSL_OP_ALL & !sys:: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS ;
124
+ const OP_ALL : libc:: c_ulong = ( sys:: SSL_OP_ALL & !sys:: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS ) as _ ;
125
125
#[ pyattr]
126
126
const HAS_TLS_UNIQUE : bool = true ;
127
127
#[ pyattr]
@@ -539,12 +539,12 @@ mod _ssl {
539
539
540
540
#[ pygetset]
541
541
fn options ( & self ) -> libc:: c_ulong {
542
- self . ctx . read ( ) . options ( ) . bits ( )
542
+ self . ctx . read ( ) . options ( ) . bits ( ) . try_into ( ) . unwrap ( )
543
543
}
544
544
#[ pygetset( setter) ]
545
545
fn set_options ( & self , opts : libc:: c_ulong ) {
546
546
self . builder ( )
547
- . set_options ( SslOptions :: from_bits_truncate ( opts) ) ;
547
+ . set_options ( SslOptions :: from_bits_truncate ( opts. into ( ) ) ) ;
548
548
}
549
549
#[ pygetset]
550
550
fn protocol ( & self ) -> i32 {
You can’t perform that action at this time.
0 commit comments