From 506008f9a0334fe5381397cac2f2f3ca85f1a6d6 Mon Sep 17 00:00:00 2001 From: Richard Diamond Date: Thu, 17 Apr 2014 12:22:02 -0500 Subject: [PATCH] Add #[deriving(Hash)] to Result. --- src/libstd/result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/result.rs b/src/libstd/result.rs index 0b6897ba2dc..493ff8c485f 100644 --- a/src/libstd/result.rs +++ b/src/libstd/result.rs @@ -275,7 +275,7 @@ use option::{None, Option, Some}; /// `Result` is a type that represents either success (`Ok`) or failure (`Err`). /// /// See the [`std::result`](index.html) module documentation for details. -#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show)] +#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show, Hash)] #[must_use] pub enum Result { /// Contains the success value