From 535be54cdc36a5b90474531eaf62671a410a8b09 Mon Sep 17 00:00:00 2001 From: Asami Doi Date: Sun, 29 Sep 2024 11:17:12 +0900 Subject: [PATCH] Rename HtmlUrl to Url for CUI --- src/saba_cui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/saba_cui.rs b/src/saba_cui.rs index ca72590..613a44f 100644 --- a/src/saba_cui.rs +++ b/src/saba_cui.rs @@ -10,12 +10,12 @@ use net::http::HttpClient; use saba_core::browser::Browser; use saba_core::error::Error; use saba_core::http::HttpResponse; -use saba_core::url::HtmlUrl; +use saba_core::url::Url; use ui::app::Tui; fn handle_url(url: String) -> Result { // parse url - let parsed_url = match HtmlUrl::new(url.to_string()).parse() { + let parsed_url = match Url::new(url.to_string()).parse() { Ok(url) => url, Err(e) => { return Err(Error::UnexpectedInput(format!( @@ -42,7 +42,7 @@ fn handle_url(url: String) -> Result { Ok(value) => value, Err(_) => return Ok(res), }; - let redirect_parsed_url = HtmlUrl::new(location); + let redirect_parsed_url = Url::new(location); let redirect_client = HttpClient::new(); match redirect_client.get(