take command arguments by value on purpose

This commit is contained in:
2026-09-21 01:25:35 +03:00
parent 5003b461fc
commit b2dd93fb09
3 changed files with 23 additions and 0 deletions
+9
View File
@@ -1,3 +1,12 @@
// Tauri deserializes every #[tauri::command] argument from the JS call and hands
// it over by value - State<'_, T>, AppHandle, String, the request structs.
// Taking them by reference would break the generated command wrapper, so the
// by-value signatures below are required rather than incidental.
#![allow(
clippy::needless_pass_by_value,
reason = "tauri::command arguments are passed by value by the generated wrapper"
)]
mod audio;
mod bootstrap;
mod capture;