LemmyNet / activitypub-federation-rust

High-level Rust library for the Activitypub protocol
GNU Affero General Public License v3.0
420 stars 45 forks source link

Use anyhow::Error for UrlVerifier return type (fixes #61) #65

Closed Nutomic closed 1 year ago

Nutomic commented 1 year ago

This will allow returning LemmyErrorType from check_apub_id_valid and avoid this ugly workaround:

https://github.com/LemmyNet/lemmy/blob/error-enum-fixed/crates/apub/src/lib.rs#L148-L153