mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
apply clippy optimizations
This commit is contained in:
parent
5d3d6d4c7f
commit
adadb149b8
8 changed files with 112 additions and 115 deletions
|
|
@ -386,24 +386,24 @@ fn is_focused(entry: &Entry) -> bool {
|
|||
fn show_identity_dialog(entry: &Entry, profile: &Rc<Profile>) {
|
||||
// connect identity traits
|
||||
use identity::{Common, Unsupported};
|
||||
if let Some(uri) = uri(entry) {
|
||||
if ["gemini", "titan"].contains(&uri.scheme().as_str()) {
|
||||
return AlertDialog::common(
|
||||
profile,
|
||||
&uri,
|
||||
&Rc::new({
|
||||
let p = profile.clone();
|
||||
let e = entry.clone();
|
||||
move |is_reload| {
|
||||
update_primary_icon(&e, &p);
|
||||
if is_reload {
|
||||
e.emit_activate();
|
||||
}
|
||||
if let Some(uri) = uri(entry)
|
||||
&& ["gemini", "titan"].contains(&uri.scheme().as_str())
|
||||
{
|
||||
return AlertDialog::common(
|
||||
profile,
|
||||
&uri,
|
||||
&Rc::new({
|
||||
let p = profile.clone();
|
||||
let e = entry.clone();
|
||||
move |is_reload| {
|
||||
update_primary_icon(&e, &p);
|
||||
if is_reload {
|
||||
e.emit_activate();
|
||||
}
|
||||
}),
|
||||
)
|
||||
.present(Some(entry));
|
||||
}
|
||||
}
|
||||
}),
|
||||
)
|
||||
.present(Some(entry));
|
||||
}
|
||||
AlertDialog::unsupported().present(Some(entry));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue