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:
skylar taylor-barrick
2026-10-17 13:35:44 -06:00
parent 37419afe14
commit f7188de93d
+1 -1
View File
@@ -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 {