File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " asn1_der"
3
- version = " 0.6.2 "
3
+ version = " 0.6.3 "
4
4
authors = [
" KizzyCode Software Labs./Keziah Biermann <[email protected] >" ]
5
5
description = " This crate provides a simple ASN.1-DER en-/decoder"
6
6
license = " BSD-2-Clause OR MIT"
@@ -26,7 +26,7 @@ overflow-checks = true
26
26
27
27
[dependencies .asn1_der_derive ]
28
28
optional = true
29
- version = " 0.1.1 "
29
+ version = " 0.1.2 "
30
30
path = " ./asn1_der_derive"
31
31
32
32
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ impl DerLength {
16
16
pub fn deserialize < ' a > ( mut source : impl Iterator < Item = & ' a u8 > ) -> Result < Self , Asn1DerError > {
17
17
match * source. next ( ) . ok_or ( Asn1DerError :: LengthMismatch ) ? as usize {
18
18
// Decode simple length
19
- b @ 0 ... 127 => Ok ( Self { len : b } ) ,
19
+ b @ 0 ..= 127 => Ok ( Self { len : b } ) ,
20
20
21
21
// Decode complex length
22
22
b => match b & 0x0f {
@@ -40,7 +40,7 @@ impl DerLength {
40
40
pub fn serialized_len ( & self ) -> usize {
41
41
match self . len {
42
42
// Simple length
43
- 0 ... 127 => 1 ,
43
+ 0 ..= 127 => 1 ,
44
44
// Complex length
45
45
len => 1 + USIZE_LEN - ( len. leading_zeros ( ) / 8 ) as usize
46
46
}
@@ -52,7 +52,7 @@ impl DerLength {
52
52
let serialized_len = self . serialized_len ( ) ;
53
53
match self . len {
54
54
// Encode simple length
55
- len @ 0 ... 127 => * buf. next ( ) . ok_or ( Asn1DerError :: LengthMismatch ) ? = len as u8 ,
55
+ len @ 0 ..= 127 => * buf. next ( ) . ok_or ( Asn1DerError :: LengthMismatch ) ? = len as u8 ,
56
56
57
57
// Encode complex length
58
58
len => {
You can’t perform that action at this time.
0 commit comments