mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
* ci: config rust log * chore: rename flowy-sdk to appflowy-core * fix: create group after editing the url * fix: start listen on new group * chore: add tests * refactor: mock data * ci: update command
11 lines
352 B
Rust
11 lines
352 B
Rust
use crate::FlowyError;
|
|
use bytes::Bytes;
|
|
use lib_dispatch::prelude::{AFPluginEventResponse, ResponseBuilder};
|
|
use std::convert::TryInto;
|
|
impl lib_dispatch::Error for FlowyError {
|
|
fn as_response(&self) -> AFPluginEventResponse {
|
|
let bytes: Bytes = self.clone().try_into().unwrap();
|
|
ResponseBuilder::Err().data(bytes).build()
|
|
}
|
|
}
|