Skip to content

Commit

Permalink
Moar Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
apocolipse committed Jun 12, 2017
1 parent e6c4f2a commit e5f8497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/TEnum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/


public protocol TEnum : TSerializable {
public protocol TEnum : TSerializable, Hashable {
var rawValue: Int32 { get }
}

extension TEnum : Hashable {
extension TEnum {
public static var thriftType: TType { return .i32 }
public var hashValue: Int { return rawValue.hashValue }

Expand Down

0 comments on commit e5f8497

Please sign in to comment.