rust-cuckoofilter icon indicating copy to clipboard operation
rust-cuckoofilter copied to clipboard

Rust `Error` `description` deprecated

Open CosmicHorrorDev opened this issue 3 years ago • 0 comments

Implementing .description() for Error was deprecated in rust 1.42 (link) where instead it is recommended to impl Display or .to_string().

Since it was deprecated it would be good to switch CuckooError away from using .description(), and it already implements Display: however, the text for Display and .description() are different. I would recommend using the text from .description() for Display since the text in Display is already just the Debug text, but I wanted to get your all's input.

CosmicHorrorDev avatar Aug 24 '20 08:08 CosmicHorrorDev