mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 16:08:21 +03:00
fix(utils): incorrect ToTokens impl for Capability (#9782)
This commit is contained in:
parent
e713ceb75d
commit
be95d8d37c
5
.changes/fix-capability-totokens.md
Normal file
5
.changes/fix-capability-totokens.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"tauri-utils": patch:bug
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes the `ToTokens` implementation for `Capability`.
|
@ -182,9 +182,10 @@ mod build {
|
|||||||
fn to_tokens(&self, tokens: &mut TokenStream) {
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
||||||
let identifier = str_lit(&self.identifier);
|
let identifier = str_lit(&self.identifier);
|
||||||
let description = str_lit(&self.description);
|
let description = str_lit(&self.description);
|
||||||
let remote = &self.remote;
|
let remote = opt_lit(self.remote.as_ref());
|
||||||
let local = self.local;
|
let local = self.local;
|
||||||
let windows = vec_lit(&self.windows, str_lit);
|
let windows = vec_lit(&self.windows, str_lit);
|
||||||
|
let webviews = vec_lit(&self.webviews, str_lit);
|
||||||
let permissions = vec_lit(&self.permissions, identity);
|
let permissions = vec_lit(&self.permissions, identity);
|
||||||
let platforms = opt_vec_lit(self.platforms.as_ref(), identity);
|
let platforms = opt_vec_lit(self.platforms.as_ref(), identity);
|
||||||
|
|
||||||
@ -196,6 +197,7 @@ mod build {
|
|||||||
remote,
|
remote,
|
||||||
local,
|
local,
|
||||||
windows,
|
windows,
|
||||||
|
webviews,
|
||||||
permissions,
|
permissions,
|
||||||
platforms
|
platforms
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user