Skip to content

Commit

Permalink
replaceItem(_:replacingItem:) method no longer requires second argume…
Browse files Browse the repository at this point in the history
…nt to be Equatable
  • Loading branch information
DenTelezhkin committed Feb 24, 2016
1 parent 026c08c commit 3656db2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.4.2](https://github.com/DenHeadless/DTModelStorage/releases/tag/2.4.2)

### Changed

* `replaceItem(_:replacingItem:)` method no longer requires second argument to be Equatable.

## [2.4.1](https://github.com/DenHeadless/DTModelStorage/releases/tag/2.4.1)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion DTModelStorage.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DTModelStorage'
s.version = '2.4.1'
s.version = '2.4.2'
s.license = 'MIT'
s.summary = 'Storage classes for datasource based controls.'
s.homepage = 'https://github.com/DenHeadless/DTModelStorage'
Expand Down
2 changes: 1 addition & 1 deletion DTModelStorage/Sources/Core/MemoryStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public class MemoryStorage: BaseStorage, StorageProtocol
/// - Parameter itemToReplace: item to replace
/// - Parameter replacingItem: replacing item
/// - Throws: if `itemToReplace` is not found, will throw MemoryStorageErrors.Replacement.ItemNotFound
public func replaceItem<T: Equatable, U:Equatable>(itemToReplace: T, replacingItem: U) throws
public func replaceItem<T: Equatable>(itemToReplace: T, replacingItem: Any) throws
{
self.startUpdate()
defer { self.finishUpdate() }
Expand Down

0 comments on commit 3656db2

Please sign in to comment.