From 655b823d13acbb71bb1496df29a9008e1b0ee9a2 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 19 Sep 2020 23:15:33 +0200 Subject: Implement Display for Version in build.rs Previously, we implemented the std::string::ToString trait for the Version enum in build.rs for converting the libnitrokey version number to a string. This patch replaces this implementation with an implementation of the std::fmt::Display trait, which automatically generates a ToString implementation and is more idiomatic. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index a7af9fb..6480c5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased - Derive `Debug` for all structs generated by `bindgen`. +- Implement `std::fmt::Display` instead of `std::string::ToString` for the + `Version` enum in `build.rs`. # v3.5.0 (2019-07-04) - Mark deprecated functions using the `deprecated` attribute. -- cgit v1.2.1