Skip to content

Commit 4ae14bf

Browse files
fix: suppress deprecated warning in tray icon codegen (#13093)
1 parent f805061 commit 4ae14bf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-utils": patch:bug
3+
---
4+
5+
Suppress deprecated warning in `TrayIconConfig`'s codegen

crates/tauri-utils/src/config.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3436,6 +3436,9 @@ mod build {
34363436

34373437
impl ToTokens for TrayIconConfig {
34383438
fn to_tokens(&self, tokens: &mut TokenStream) {
3439+
// For [`Self::menu_on_left_click`]
3440+
tokens.append_all(quote!(#[allow(deprecated)]));
3441+
34393442
let id = opt_str_lit(self.id.as_ref());
34403443
let icon_as_template = self.icon_as_template;
34413444
#[allow(deprecated)]

0 commit comments

Comments
 (0)