From 7dee307aa6d89860528ad4b8087bccdba5147a5f Mon Sep 17 00:00:00 2001 From: ndom91 Date: Mon, 9 Sep 2024 15:07:33 +0200 Subject: [PATCH] fix: add instrumentation to new tauri cmd and rm unnecessary reference --- crates/gitbutler-tauri/src/github.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gitbutler-tauri/src/github.rs b/crates/gitbutler-tauri/src/github.rs index db5dba631..ec47b36d2 100644 --- a/crates/gitbutler-tauri/src/github.rs +++ b/crates/gitbutler-tauri/src/github.rs @@ -88,9 +88,9 @@ pub mod commands { } #[tauri::command(async)] - // NOTE: Do I need this instrument macro? + #[instrument] pub fn get_available_pull_request_templates(path: &path::Path) -> Result, Error> { - let walked_paths = list_files(path, &[&path])?; + let walked_paths = list_files(path, &[path])?; let mut available_paths = Vec::new(); for entry in walked_paths {