Simplify return type of most route handlers
This commit is contained in:
parent
77a87881c9
commit
5fa9190117
38 changed files with 358 additions and 414 deletions
|
@ -29,9 +29,6 @@ impl<T: Outgoing> Deref for Ruma<T> {
|
|||
}
|
||||
}
|
||||
|
||||
/// This struct converts ruma structs to http responses.
|
||||
pub type ConduitResult<T> = Result<RumaResponse<T>, Error>;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct RumaResponse<T>(pub T);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue