api-types: standalone crate with DTOs (widget, data source, layout, preset) extracted from http-api. Shared between http-api and future SPA. thiserror: replaced all manual Display impls with derive macros across 8 crates (config-sqlite, config-memory, tcp-server, tcp-client, http-json, rss, media, application).
10 lines
214 B
Rust
10 lines
214 B
Rust
#[derive(Debug, thiserror::Error)]
|
|
pub enum RssError {
|
|
#[error("request: {0}")]
|
|
Request(#[from] reqwest::Error),
|
|
#[error("no url configured")]
|
|
NoUrl,
|
|
#[error("parse: {0}")]
|
|
Parse(String),
|
|
}
|