mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 23:05:56 +01:00
fix readme example
This commit is contained in:
parent
d9ba78526e
commit
4273b95066
@ -18,8 +18,8 @@ pub struct MyObj {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
|
fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
|
||||||
println!("model: {:?}", val);
|
println!("model: {:?}", msg);
|
||||||
HttpResponse::Ok().protobuf(val) // <- send response
|
HttpResponse::Ok().protobuf(msg) // <- send response
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user