refactor: typed errors in rss/import ports

This commit is contained in:
2026-10-25 20:30:28 +01:00
parent 18c179e14c
commit 59238a36d8
17 changed files with 410 additions and 392 deletions

View File

@@ -1,3 +1,4 @@
use domain::errors::DomainError;
use domain::models::DiaryEntry;
use domain::ports::{FeedChannel, RssFeedRenderer};
use rss_feed::extension::atom::{self, AtomExtensionBuilder, Link};
@@ -24,7 +25,7 @@ impl RssFeedRenderer for RssAdapter {
&self,
entries: &[DiaryEntry],
channel: &FeedChannel<'_>,
) -> Result<String, String> {
) -> Result<String, DomainError> {
let items = entries
.iter()
.map(|e| {