From da90621b96b8576ff3366965815fbd7a4b4e8b4a Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 10 Oct 2020 20:24:21 +0200 Subject: [PATCH] attrlist: don't derive Eq/PartialEq by default fix the conflict with the equal function introduced in v1_46 --- Gir.toml | 2 ++ src/auto/attr_list.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Gir.toml b/Gir.toml index cd0224f..ade32dd 100644 --- a/Gir.toml +++ b/Gir.toml @@ -134,6 +134,8 @@ status = "generate" [[object]] name = "Pango.AttrList" status = "generate" + [[object.derive]] + name = "Debug, PartialOrd, Ord, Hash" [[object.function]] name = "change" ignore = true diff --git a/src/auto/attr_list.rs b/src/auto/attr_list.rs index ec42a3e..ffe225d 100644 --- a/src/auto/attr_list.rs +++ b/src/auto/attr_list.rs @@ -8,7 +8,7 @@ use AttrIterator; use Attribute; glib_wrapper! { - #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] + #[derive(Debug, PartialOrd, Ord, Hash)] pub struct AttrList(Shared); match fn {