Skip to content

Commit

Permalink
Give the Unimplemented HTTP client a Debug impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed May 2, 2023
1 parent f8a3796 commit d145cc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wasi/src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub fn default_http_client() -> Option<impl HttpClient + Send + Sync + 'static>
// Note: We need something to use with turbofish otherwise returning
// a plain None will complain about not being able to infer the "T"
// in Option<T>
#[derive(Debug)]
enum Unimplemented {}
impl HttpClient for Unimplemented {
fn request(&self, request: HttpRequest) -> futures::future::BoxFuture<'_, Result<HttpResponse, anyhow::Error>> {
Expand Down

0 comments on commit d145cc0

Please sign in to comment.