Implement From<activitystreams::checked::CheckError> for Error

This commit is contained in:
Kitaiti Makoto 2022-02-11 14:20:04 +09:00
parent 3e687f3af0
commit 4b3b5c1f40

View File

@ -127,6 +127,12 @@ impl From<activitypub::Error> for Error {
} }
} }
impl From<activitystreams::checked::CheckError> for Error {
fn from(_: activitystreams::checked::CheckError) -> Error {
Error::MissingApProperty
}
}
impl From<webfinger::WebfingerError> for Error { impl From<webfinger::WebfingerError> for Error {
fn from(_: webfinger::WebfingerError) -> Self { fn from(_: webfinger::WebfingerError) -> Self {
Error::Webfinger Error::Webfinger