mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
Fix clippy warnings
This commit is contained in:
@ -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)
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user