Skip to content

Commit c5af448

Browse files
resolved clippy and format checks
1 parent 86aba6b commit c5af448

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/engines/yahoo.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ use crate::models::engine::{EngineError, SearchEngine};
1414

1515
use super::search_result_parser::SearchResultParser;
1616

17-
// Removed unused import: std::string::FromUtf8Error
18-
1917
/// A new Yahoo engine type defined in-order to implement the `SearchEngine` trait which allows to
2018
/// reduce code duplication as well as allows to create vector of different search engines easily.
2119
pub struct Yahoo {
@@ -54,7 +52,7 @@ impl Yahoo {
5452
// Ok(final_url)
5553
// }
5654
}
57-
55+
/// Parses the Yahoo redirect URL and extracts the actual target URL.
5856
fn parse_yahoo_redirect_url(raw_url: &str) -> String {
5957
// Look for the /RU= marker
6058
if let Some(start_idx) = raw_url.find("/RU=") {
@@ -80,7 +78,6 @@ fn parse_yahoo_redirect_url(raw_url: &str) -> String {
8078

8179
/// Perform a percent-decoding using only the Rust standard library.
8280
// use error_stack::{Report, Result};
83-
8481
/// Perform percent-decoding using only the Rust standard library
8582
fn percent_decode(input: &[u8]) -> Result<String, Report<FromUtf8Error>> {
8683
let mut output = Vec::with_capacity(input.len());

0 commit comments

Comments
 (0)