fix indentations in macro
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
e087326755
commit
f0f7542332
1 changed files with 27 additions and 26 deletions
|
@ -105,17 +105,18 @@ impl MatrixClient {
|
|||
url,
|
||||
stream: match &file.source {
|
||||
MediaSource::Plain(_) => {
|
||||
Box::pin(body.map_err(DumpError::from)) as Pin<Box<dyn TryStream<Ok = Bytes, Error = DumpError, Item = Result<Bytes, DumpError>> + Send>>
|
||||
Box::pin(body.map_err(DumpError::from))
|
||||
}
|
||||
MediaSource::Encrypted(e) => Box::pin(decrypt_file(e.as_ref(), body).await?.map_ok(|v| Bytes::from(v)).map_err(
|
||||
|e| match e {
|
||||
ErrOrWrongHash::Err(e) => e.into(),
|
||||
ErrOrWrongHash::WrongHash => DumpError::HashMismatch,
|
||||
},
|
||||
)) as Pin<Box<dyn TryStream<Ok = Bytes, Error = DumpError, Item = Result<Bytes, DumpError>> + Send>>,
|
||||
))
|
||||
}})
|
||||
}
|
||||
)))
|
||||
}
|
||||
})
|
||||
})))}
|
||||
)*
|
||||
_ => Ok(None),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue