diff options
| author | Fuwn <[email protected]> | 2023-05-18 06:24:50 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-18 06:24:50 +0000 |
| commit | 56f53ddca0135e17708af585bfb50144d6836f55 (patch) | |
| tree | 1d5beea4c266a7d9bdd50fe4750540d618b0b160 /src/request.rs | |
| parent | fix: improve macro hygiene (diff) | |
| download | germ-56f53ddca0135e17708af585bfb50144d6836f55.tar.xz germ-56f53ddca0135e17708af585bfb50144d6836f55.zip | |
fmt: update rustfmt.toml
Diffstat (limited to 'src/request.rs')
| -rw-r--r-- | src/request.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/request.rs b/src/request.rs index 2c7c273..97aa954 100644 --- a/src/request.rs +++ b/src/request.rs @@ -22,14 +22,12 @@ mod response; mod status; mod verifier; -#[cfg(feature = "sync")] -pub mod sync; +#[cfg(feature = "sync")] pub mod sync; use std::io::{Read, Write}; -pub use response::Response; -pub use status::Status; pub(crate) use verifier::GermVerifier; +pub use {response::Response, status::Status}; /// Make a request to a Gemini server. The `url` **should** be prefixed with a /// scheme (e.g. "gemini://"). @@ -69,8 +67,5 @@ pub fn request(url: &url::Url) -> anyhow::Result<Response> { tls.read_to_end(&mut plain_text)?; - Ok(Response::new( - &plain_text, - tls.conn.negotiated_cipher_suite(), - )) + Ok(Response::new(&plain_text, tls.conn.negotiated_cipher_suite())) } |