From 35d512d1a3f15631733ee3cd58fd2b9157ced21a Mon Sep 17 00:00:00 2001 From: daxpedda Date: Sat, 20 Jul 2024 21:06:33 +0200 Subject: [PATCH] chore: implement `Hash` for `ParseError` --- CHANGELOG.md | 2 ++ src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 117a540..45fd07b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +- Implement `Hash` for `ParseError`. + ## 1.1.0 - Bump MSRV from `1.64` to `1.65`. diff --git a/src/lib.rs b/src/lib.rs index 9aa6196..c6c91bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -427,7 +427,7 @@ impl core::str::FromStr for CursorIcon { /// This occurs when the [`FromStr`] implementation of [`CursorIcon`] fails. /// /// [`FromStr`]: core::str::FromStr -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq, Hash)] pub struct ParseError { _private: (), }