From 1c6b4d4dfd498c4127a076c48b6c37e05eaacb62 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 30 Dec 2018 00:04:49 +0100 Subject: Derive Clone and Copy for CommandError, LogLevel, OtpMode As these three enums are scalar values, this patch derives the Clone and Copy traits for them. This should avoid unnecessary allocations and reduce the memory footprint. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index a30e531..11092ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - Remove the `test-no-device` feature. - Update the rand dependency to version 0.6. - Add function `Device::get_model` that returns the connected model. +- Derive the `Copy` and `Clone` traits for the enums `CommandError`, `LogLevel` + and `OtpMode` # v0.2.1 (2018-12-10) -- cgit v1.2.1