Skip to content

Commit b80e69a

Browse files
authored
make HttpTypedResponse pub use (#315)
1 parent 2a0308c commit b80e69a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dropshot/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ pub use handler::HttpResponseDeleted;
633633
pub use handler::HttpResponseHeaders;
634634
pub use handler::HttpResponseOk;
635635
pub use handler::HttpResponseUpdatedNoContent;
636+
pub use handler::HttpTypedResponse;
636637
pub use handler::NoHeaders;
637638
pub use handler::Path;
638639
pub use handler::Query;

dropshot/tests/fail/bad_endpoint12.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error[E0277]: the trait bound `String: dropshot::handler::HttpTypedResponse` is not satisfied
1+
error[E0277]: the trait bound `String: HttpTypedResponse` is not satisfied
22
--> tests/fail/bad_endpoint12.rs:16:6
33
|
44
16 | ) -> Result<String, HttpError> {
5-
| ^^^^^^ the trait `dropshot::handler::HttpTypedResponse` is not implemented for `String`
5+
| ^^^^^^ the trait `HttpTypedResponse` is not implemented for `String`
66
|
77
= note: required because of the requirements on the impl of `HttpResponse` for `String`
88
note: required because of the requirements on the impl of `ResultTrait` for `Result<String, HttpError>`

0 commit comments

Comments
 (0)