Fixes compile warnings.

This commit is contained in:
Krunoslav Zaher 2015-08-23 21:37:09 +02:00
parent 13a75158d1
commit 7544a2535e
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class RxCollectionViewSectionedAnimatedDataSource<S: SectionModelType> : RxColle
setSections(c.finalSections)
collectionView.performBatchUpdates(c)
}
case .Error(let _):
case .Error:
#if DEBUG
fatalError("Binding error to UI")
#endif

View File

@ -22,7 +22,7 @@ class RxCollectionViewSectionedReloadDataSource<S: SectionModelType> : RxCollect
case .Next(let element):
setSections(element)
collectionView.reloadData()
case .Error(let error):
case .Error:
#if DEBUG
fatalError("Binding error to UI")
#endif

View File

@ -11,7 +11,7 @@ import Foundation
func parseImageURLsfromHTML(html: NSString) throws -> [NSURL] {
let regularExpression = try NSRegularExpression(pattern: "<img[^>]*src=\"([^\"]+)\"[^>]*>", options: [])
let matches = regularExpression.matchesInString(html as String, options: [], range: NSMakeRange(0, html.length)) as! [NSTextCheckingResult]
let matches = regularExpression.matchesInString(html as String, options: [], range: NSMakeRange(0, html.length))
return matches.map { match -> NSURL? in
if match.numberOfRanges != 2 {