Skip to content
This repository was archived by the owner on May 13, 2020. It is now read-only.

Commit d30d8df

Browse files
committed
Remove conformance to Equatable
1 parent e9d5848 commit d30d8df

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

RxReduce/Lens.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
public struct Lens<State, SubState> {
1111

1212
/// retrieves a Substate from a State
13-
let get: (State) -> SubState
13+
public let get: (State) -> SubState
1414

1515
/// Generates a new State based on an original State and on an original SubState
16-
let set: (State, SubState) -> State
16+
public let set: (State, SubState) -> State
1717
}

RxReduce/Mutator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/// A Mutator holds all the required tools to mutate a State's Substate and
1010
// generate a new State
11-
public struct Mutator<State: Equatable, SubState: Equatable> {
11+
public struct Mutator<State, SubState> {
1212
let lens: Lens<State, SubState>
1313
let reducer: (State, Action) -> SubState
1414

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//
2+
// AppLenses.swift
3+
// RxReduceDemo
4+
//
5+
// Created by Thibault Wittemberg on 2018-08-22.
6+
// Copyright © 2018 Wittemberg, Thibault. All rights reserved.
7+
//
8+
9+
import Foundation

0 commit comments

Comments
 (0)