Skip to content

Commit

Permalink
Fix broken doctest (#22)
Browse files Browse the repository at this point in the history
Thank you!
  • Loading branch information
paolobarbolini authored Nov 20, 2024
1 parent 24c5166 commit 244e9e3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
//! ```no_run
//! # use std::error::Error;
//! # fn hidden() -> Result<(), Box<dyn Error>> {
//! use hyper::{Body, Uri};
//! use hyper::client::{Client, HttpConnector};
//! use bytes::Bytes;
//! use http_body_util::Full;
//! use hyper::Uri;
//! use hyper_socks2::SocksConnector;
//! use hyper_util::{
//! client::legacy::{connect::HttpConnector, Client},
//! rt::TokioExecutor,
//! };
//!
//! let mut connector = HttpConnector::new();
//! connector.enforce_http(false);
Expand All @@ -19,7 +24,7 @@
//! // with TLS support
//! let proxy = proxy.with_tls()?;
//!
//! let client = Client::builder().build::<_, Body>(proxy);
//! let client = Client::builder(TokioExecutor::new()).build::<_, Full<Bytes>>(proxy);
//!
//! # Ok(())
//! # }
Expand Down

0 comments on commit 244e9e3

Please sign in to comment.