Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings (rust 1.51) #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cemeyer
Copy link

@cemeyer cemeyer commented May 30, 2021

For Error, drop the deprecated description() method and move the logic
into the Display impl.

In bin.rs, use explicit 'dyn' annotation for Boxes of traits. This is
functionally identical, but the older syntax is deprecated.

In the KAT support logic, the format string of an assert!() must be a
string literal in Rust 2021. As the variable we were using for the
format string was itself a formatted string, we can just simplify by
doing the formatting in assert!() itself.

For Error, drop the deprecated description() method and move the logic
into the Display impl.

In bin.rs, use explicit 'dyn' annotation for Boxes of traits.  This is
functionally identical, but the older syntax is deprecated.

In the KAT support logic, the format string of an assert!() must be a
string literal in Rust 2021.  As the variable we were using for the
format string was itself a formatted string, we can just simplify by
doing the formatting in assert!() itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant