Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Derive more useful traits for our shared/boxed types
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Aug 17, 2018
1 parent 931dcbe commit feff6a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/closure.rs
Expand Up @@ -18,7 +18,7 @@ use Value;
use ToValue;

glib_wrapper! {
#[derive(PartialEq, Eq, Debug, Hash)]
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
pub struct Closure(Shared<gobject_ffi::GClosure>);

match fn {
Expand Down
1 change: 1 addition & 0 deletions src/error.rs
Expand Up @@ -17,6 +17,7 @@ use gobject_ffi;

glib_wrapper! {
/// A generic error capable of representing various error domains (types).
#[derive(PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Error(Boxed<glib_ffi::GError>);

match fn {
Expand Down
2 changes: 1 addition & 1 deletion src/param_spec.rs
Expand Up @@ -16,7 +16,7 @@ use translate::*;
use ParamFlags;

glib_wrapper! {
#[derive(Debug, PartialEq, Eq, Hash)]
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct ParamSpec(Shared<ffi::GParamSpec>);

match fn {
Expand Down

0 comments on commit feff6a6

Please sign in to comment.