1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

Fix clippy warnings

This commit is contained in:
Yuki Okushi
2020-07-06 15:47:22 +09:00
parent 6b839f0a30
commit bd963fb7d1
4 changed files with 46 additions and 61 deletions

View File

@ -144,10 +144,10 @@ impl<T: Message + Default> Responder for ProtoBuf<T> {
self.0
.encode(&mut buf)
.map_err(|e| Error::from(ProtoBufPayloadError::Serialize(e)))
.and_then(|()| {
Ok(HttpResponse::Ok()
.map(|()| {
HttpResponse::Ok()
.content_type("application/protobuf")
.body(buf))
.body(buf)
}),
)
}