From cfa77b38fce19becc5ef6955e208d44d00359730 Mon Sep 17 00:00:00 2001 From: KizzyCode Date: Sat, 18 Apr 2020 18:49:51 +0200 Subject: [PATCH] Removed faulty native signed integer implementation --- README.md | 3 +-- src/lib.rs | 3 +-- tests/err_typed.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8691fc1..964d7a5 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,7 @@ For the (de-)serialization of structs and similar via `derive`, see There are also some direct `DerDecodable`/`DerDecodable` implementations for native Rust type equivalents: - The ASN.1-`BOOLEAN` type as Rust-`bool` - - The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`, - `i8`, `i16`, `i32`, `i64`, `i128`, `isize`] + - The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`] - The ASN.1-`NULL` type as either `()` or `Option::None` (which allows the encoding of optionals) - The ASN.1-`OctetString` type as `Vec` diff --git a/src/lib.rs b/src/lib.rs index beb62d2..4a6194e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,8 +53,7 @@ //! There are also some direct `DerDecodable`/`DerDecodable` implementations for native Rust type //! equivalents: //! - The ASN.1-`BOOLEAN` type as Rust-`bool` -//! - The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`, -//! `i8`, `i16`, `i32`, `i64`, `i128`, `isize`] +//! - The ASN.1-`INTEGER` type as Rust-[`u8`, `u16`, `u32`, `u64`, `u128`, `usize`] //! - The ASN.1-`NULL` type as either `()` or `Option::None` (which allows the encoding of //! optionals) //! - The ASN.1-`OctetString` type as `Vec` diff --git a/tests/err_typed.rs b/tests/err_typed.rs index 6c8f5cf..db57058 100644 --- a/tests/err_typed.rs +++ b/tests/err_typed.rs @@ -24,7 +24,7 @@ fn integer() { ($num:ty) => (<$num>::decode(&test.bytes).assert_err(&test.err, &test.name)); ($( $num:ty ),+) => ($( native!($num); )+); } - native!(u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize); + native!(u8, u16, u32, u64, u128, usize); } }