Skip to content

Commit

Permalink
Removed faulty native signed integer implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
KizzyCode committed Apr 18, 2020
1 parent b819013 commit cfa77b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>`
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>`
Expand Down
2 changes: 1 addition & 1 deletion tests/err_typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cfa77b3

Please sign in to comment.