diff options
| author | Fuwn <[email protected]> | 2023-05-22 05:27:27 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-22 05:27:27 +0000 |
| commit | d683589353d34cf80c79dd58a82fb52454cb3d90 (patch) | |
| tree | 59c93f847f1a037c5ecf7904696828ba5588b2e4 /src | |
| parent | chore: update copyright header (diff) | |
| download | september-d683589353d34cf80c79dd58a82fb52454cb3d90.tar.xz september-d683589353d34cf80c79dd58a82fb52454cb3d90.zip | |
refactor(src): rename files
Diffstat (limited to 'src')
| -rw-r--r-- | src/html.rs (renamed from src/gemini_to_html.rs) | 2 | ||||
| -rw-r--r-- | src/main.rs | 2 | ||||
| -rw-r--r-- | src/response.rs | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/gemini_to_html.rs b/src/html.rs index 64ad5d8..2026272 100644 --- a/src/gemini_to_html.rs +++ b/src/html.rs @@ -36,7 +36,7 @@ fn link_from_host_href(url: &Url, href: &str) -> String { } #[allow(clippy::too_many_lines)] -pub fn gemini_to_html( +pub fn from_gemini( response: &gmi::protocol::Response, url: &Url, is_proxy: bool, diff --git a/src/main.rs b/src/main.rs index 85eb228..a1ffb08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,7 @@ #![recursion_limit = "128"] #![allow(clippy::cast_precision_loss)] -mod gemini_to_html; +mod html; mod response; mod url; diff --git a/src/response.rs b/src/response.rs index 8e335a0..83bdc1e 100644 --- a/src/response.rs +++ b/src/response.rs @@ -126,8 +126,7 @@ For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime".< } ) }; - let gemini_html = - crate::gemini_to_html::gemini_to_html(&response, &url, is_proxy); + let gemini_html = crate::html::from_gemini(&response, &url, is_proxy); let gemini_title = gemini_html.0; let convert_time_taken = timer.elapsed(); |