take command arguments by value on purpose
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user