Skip to content

Commit 506008f

Browse files
author
Richard Diamond
committed
Add #[deriving(Hash)] to Result.
1 parent 903fbd2 commit 506008f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ use option::{None, Option, Some};
275275
/// `Result` is a type that represents either success (`Ok`) or failure (`Err`).
276276
///
277277
/// See the [`std::result`](index.html) module documentation for details.
278-
#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show)]
278+
#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show, Hash)]
279279
#[must_use]
280280
pub enum Result<T, E> {
281281
/// Contains the success value

0 commit comments

Comments
 (0)