File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ extension Edge: CustomStringConvertible {
29
29
30
30
extension Edge : Hashable {
31
31
32
+
32
33
public func hash( into hasher: inout Hasher ) {
33
- hasher. combine ( from)
34
- hasher. combine ( to)
35
- if weight != nil {
36
- hasher. combine ( weight)
37
- }
38
- }
34
+ hasher. combine ( from)
35
+ hasher. combine ( to)
36
+ if weight != nil {
37
+ hasher. combine ( weight)
38
+ }
39
+ }
40
+
39
41
}
40
42
41
43
public func == < T> ( lhs: Edge < T > , rhs: Edge < T > ) -> Bool {
Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ extension Vertex: CustomStringConvertible {
24
24
25
25
extension Vertex : Hashable {
26
26
27
- public func hasher( into hasher: inout Hasher ) {
28
-
29
- hasher. combine ( data)
30
- hasher. combine ( index)
31
- }
27
+
28
+
29
+ public func hasher( into hasher: inout Hasher ) {
30
+
31
+ hasher. combine ( data)
32
+ hasher. combine ( index)
33
+ }
32
34
33
35
}
34
36
You can’t perform that action at this time.
0 commit comments