Skip to content

Commit e186bf9

Browse files
amrbashirSir-Thom
authored andcommitted
refacator(dialog): mark FileResponse as #[non_exhaustive] (tauri-apps#1660)
* recator(dialog): mark `FileResponse` as `#[non_exhaustive]` closes tauri-apps#1623 * change file
1 parent 43e53a1 commit e186bf9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dialog": "patch"
3+
---
4+
5+
Mark `FileResponse` as `non_exhaustive`.

plugins/dialog/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ impl<R: Runtime> MessageDialogBuilder<R> {
218218

219219
#[derive(Debug, Deserialize, Serialize, Default)]
220220
#[serde(rename_all = "camelCase")]
221+
#[non_exhaustive]
221222
pub struct FileResponse {
222223
pub base64_data: Option<String>,
223224
pub duration: Option<u64>,

0 commit comments

Comments
 (0)