MikhailMS/rust-radius

Failing tests

Closed this issue · 1 comments

There are tests failing for rust versions 1.42.0 - 1.46.0 with following errors

error[E0369]: binary operation `==` cannot be applied to type `&[u8; 57]`
   --> src/tools/mod.rs:453:9
    |
453 |         assert_eq!(plaintext_long, salt_decrypt_data(encrypted_data_long, authenticator, secret).unwrap().as_slice());
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |         |
    |         &[u8; 57]
    |         &[u8]
    |
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: arrays only have std trait implementations for lengths 0..=32
   --> src/tools/mod.rs:453:9
    |
453 |         assert_eq!(plaintext_long, salt_decrypt_data(encrypted_data_long, authenticator, secret).unwrap().as_slice());
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[u8; 57]`
    |
    = note: required because of the requirements on the impl of `std::fmt::Debug` for `[u8; 57]`
    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&[u8; 57]`
    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&&[u8; 57]`
    = note: required by `std::fmt::Debug::fmt`
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors

Above only mentions test_salt_decrypt_data_long case, however I believe there could be another test cases

Closed by 814cdf5