You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To check that all newtypes (SecretKeys, Poly1305, etc.) implement the correct traits, new testing functions are needed.
For example fn test_traits_secret_key<Secret: Debug + Drop + PartialEq>() {} could be used to check that a secret key implements the needed traits in a test like so:
fntest_traits_secret_key<Secret:Debug + Drop + PartialEq>(){}#[test]fntest_implemented_traits(){
test_traits_secret_key<hmac::SecretKey>();}
The text was updated successfully, but these errors were encountered:
To check that all newtypes (
SecretKey
s,Poly1305
, etc.) implement the correct traits, new testing functions are needed.For example
fn test_traits_secret_key<Secret: Debug + Drop + PartialEq>() {}
could be used to check that a secret key implements the needed traits in a test like so:The text was updated successfully, but these errors were encountered: