Skip to content

Commit cfa77b3

Browse files
committed
Removed faulty native signed integer implementation
1 parent b819013 commit cfa77b3

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ For the (de-)serialization of structs and similar via `derive`, see
5151
There are also some direct `DerDecodable`/`DerDecodable` implementations for native Rust type
5252
equivalents:
5353
- The ASN.1-`BOOLEAN` type as Rust-`bool`
54-
- The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`,
55-
`i8`, `i16`, `i32`, `i64`, `i128`, `isize`]
54+
- The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`]
5655
- The ASN.1-`NULL` type as either `()` or `Option::None` (which allows the encoding of
5756
optionals)
5857
- The ASN.1-`OctetString` type as `Vec<u8>`

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
//! There are also some direct `DerDecodable`/`DerDecodable` implementations for native Rust type
5454
//! equivalents:
5555
//! - The ASN.1-`BOOLEAN` type as Rust-`bool`
56-
//! - The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`,
57-
//! `i8`, `i16`, `i32`, `i64`, `i128`, `isize`]
56+
//! - The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`]
5857
//! - The ASN.1-`NULL` type as either `()` or `Option::None` (which allows the encoding of
5958
//! optionals)
6059
//! - The ASN.1-`OctetString` type as `Vec<u8>`

tests/err_typed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn integer() {
2424
($num:ty) => (<$num>::decode(&test.bytes).assert_err(&test.err, &test.name));
2525
($( $num:ty ),+) => ($( native!($num); )+);
2626
}
27-
native!(u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize);
27+
native!(u8, u16, u32, u64, u128, usize);
2828
}
2929
}
3030

0 commit comments

Comments
 (0)