File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ use crate::models::engine::{EngineError, SearchEngine};
14
14
15
15
use super :: search_result_parser:: SearchResultParser ;
16
16
17
- // Removed unused import: std::string::FromUtf8Error
18
-
19
17
/// A new Yahoo engine type defined in-order to implement the `SearchEngine` trait which allows to
20
18
/// reduce code duplication as well as allows to create vector of different search engines easily.
21
19
pub struct Yahoo {
@@ -54,7 +52,7 @@ impl Yahoo {
54
52
// Ok(final_url)
55
53
// }
56
54
}
57
-
55
+ /// Parses the Yahoo redirect URL and extracts the actual target URL.
58
56
fn parse_yahoo_redirect_url ( raw_url : & str ) -> String {
59
57
// Look for the /RU= marker
60
58
if let Some ( start_idx) = raw_url. find ( "/RU=" ) {
@@ -80,7 +78,6 @@ fn parse_yahoo_redirect_url(raw_url: &str) -> String {
80
78
81
79
/// Perform a percent-decoding using only the Rust standard library.
82
80
// use error_stack::{Report, Result};
83
-
84
81
/// Perform percent-decoding using only the Rust standard library
85
82
fn percent_decode ( input : & [ u8 ] ) -> Result < String , Report < FromUtf8Error > > {
86
83
let mut output = Vec :: with_capacity ( input. len ( ) ) ;
You can’t perform that action at this time.
0 commit comments