mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-24 10:27:00 -06:00
Drop a needless borrow in the dev-resource link gate
clippy::needless_borrow; `url` is already a reference. Missed on review because a workspace clippy run aborts at the first failing crate, which was figcraft-format.
This commit is contained in:
@@ -637,7 +637,7 @@ pub fn dev_resources_section(app: &mut FigApp, ui: &mut Ui, doc: &Document, id:
|
||||
crate::a11y::link(&resp, name);
|
||||
// Opened only on a click, never fetched, and a dev resource's URL comes from the
|
||||
// document, so only a web link opens.
|
||||
if resp.on_hover_text(url.as_str()).clicked() && figcraft_engine::doc_urls::openable(&url) {
|
||||
if resp.on_hover_text(url.as_str()).clicked() && figcraft_engine::doc_urls::openable(url) {
|
||||
ui.ctx().open_url(egui::OpenUrl::new_tab(url));
|
||||
}
|
||||
if let Some(i) = item.index {
|
||||
|
||||
Reference in New Issue
Block a user