mirror of
https://github.com/mat-1/metasearch2.git
synced 2025-08-02 15:26:04 +00:00
clippy
This commit is contained in:
parent
7349a8b461
commit
97d86a4fbf
3 changed files with 4 additions and 4 deletions
|
@ -14,6 +14,6 @@ fn main() {
|
|||
Ok(output) => String::from_utf8(output.stdout).unwrap_or("unknown".into()),
|
||||
Err(_) => "unknown".into(),
|
||||
};
|
||||
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
|
||||
println!("cargo:rustc-env=GIT_HASH_SHORT={}", git_hash_short);
|
||||
println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
||||
println!("cargo:rustc-env=GIT_HASH_SHORT={git_hash_short}");
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ fn is_potential_request(query: &str) -> bool {
|
|||
true
|
||||
}
|
||||
|
||||
fn interpret(query: &str) -> Option<(Statement, Markup)> {
|
||||
fn interpret(query: &str) -> Option<(Statement<'_>, Markup)> {
|
||||
if !is_potential_request(query) {
|
||||
return None;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ fn render_image_result(
|
|||
// serialize url params
|
||||
let escaped_param =
|
||||
url::form_urlencoded::byte_serialize(original_image_src.as_bytes()).collect::<String>();
|
||||
format!("/image-proxy?url={}", escaped_param)
|
||||
format!("/image-proxy?url={escaped_param}")
|
||||
} else {
|
||||
original_image_src.to_string()
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue