Get LocalAccount module building with new Parser module.

This commit is contained in:
Brent Simmons 2024-09-23 22:15:37 -07:00
parent cdd95843e8
commit fee2b3af90
2 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@ let package = Package(
.target(
name: "LocalAccount",
dependencies: [
"Parser",
.product(name: "FeedParser", package: "Parser"),
"Web"
],
swiftSettings: [

View File

@ -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
}