mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Get LocalAccount module building with new Parser module.
This commit is contained in:
parent
cdd95843e8
commit
fee2b3af90
@ -18,7 +18,7 @@ let package = Package(
|
||||
.target(
|
||||
name: "LocalAccount",
|
||||
dependencies: [
|
||||
"Parser",
|
||||
.product(name: "FeedParser", package: "Parser"),
|
||||
"Web"
|
||||
],
|
||||
swiftSettings: [
|
||||
|
@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Parser
|
||||
import FeedParser
|
||||
import Web
|
||||
|
||||
public struct InitialFeedDownloader {
|
||||
@ -22,8 +22,7 @@ public struct InitialFeedDownloader {
|
||||
return nil
|
||||
}
|
||||
|
||||
let parserData = ParserData(url: url.absoluteString, data: data)
|
||||
guard let parsedFeed = try? await FeedParser.parse(parserData) else {
|
||||
guard let parsedFeed = try? FeedParser.parse(urlString: url.absoluteString, data: data) else {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user