Skip to content

Commit f97c87c

Browse files
authored
Fix failing der test by gating vec! use behind alloc #1322 (#1323)
This seems to address the failing test described in #1322. I've tested this using: $ cargo test -F der $ cargo test -F der -F alloc
1 parent e25b054 commit f97c87c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/uint/encoding/der.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ pub mod test {
237237
assert_valid_value_len_hex("fedcba9876543210fedcba9876543210");
238238
}
239239

240+
#[cfg(feature = "alloc")]
240241
#[test]
241242
fn fixed_uint_rejects_oversized_integer_without_panic() {
242243
use der::Decode;

0 commit comments

Comments
 (0)