File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ const COMBINED_KEY_LENGTH: usize = SIGNING_KEY_LEN + ENCRYPTION_KEY_LEN;
4
4
5
5
// Statically ensure the numbers above are in-sync.
6
6
#[ cfg( feature = "signed" ) ]
7
- const_assert ! ( crate :: secure:: signed:: KEY_LEN == SIGNING_KEY_LEN ) ;
7
+ const _ : ( ) = assert ! ( crate :: secure:: signed:: KEY_LEN == SIGNING_KEY_LEN ) ;
8
8
#[ cfg( feature = "private" ) ]
9
- const_assert ! ( crate :: secure:: private:: KEY_LEN == ENCRYPTION_KEY_LEN ) ;
9
+ const _ : ( ) = assert ! ( crate :: secure:: private:: KEY_LEN == ENCRYPTION_KEY_LEN ) ;
10
10
11
11
/// A cryptographic master key for use with `Signed` and/or `Private` jars.
12
12
///
Original file line number Diff line number Diff line change @@ -38,15 +38,3 @@ macro_rules! assert_secure_behaviour {
38
38
assert!( $secure. get( "secure" ) . is_none( ) ) ;
39
39
} } ;
40
40
}
41
-
42
- // This is courtesty of `static_assertions`. That library is Copyright (c) 2017
43
- // Nikolai Vazquez. See https://github.com/nvzqz/static-assertions-rs for more.
44
- macro_rules! const_assert {
45
- ( $x: expr $( , ) ?) => {
46
- #[ allow( unknown_lints, clippy:: eq_op) ]
47
- const _: [ ( ) ; 0 - !{
48
- const ASSERT : bool = $x;
49
- ASSERT
50
- } as usize ] = [ ] ;
51
- } ;
52
- }
You can’t perform that action at this time.
0 commit comments