File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " deep-link " : patch
3
+ ---
4
+
5
+ Allow empty configuration values.
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ where
32
32
#[ derive( Deserialize ) ]
33
33
pub struct Config {
34
34
/// Mobile requires `https://<host>` urls.
35
+ #[ serde( default ) ]
35
36
pub mobile : Vec < AssociatedDomain > ,
36
37
/// Desktop requires urls starting with `<scheme>://`.
37
38
/// These urls are also active in dev mode on Android.
38
39
#[ allow( unused) ] // Used in tauri-bundler
40
+ #[ serde( default ) ]
39
41
pub desktop : DesktopProtocol ,
40
42
}
41
43
@@ -46,3 +48,9 @@ pub enum DesktopProtocol {
46
48
One ( DeepLinkProtocol ) ,
47
49
List ( Vec < DeepLinkProtocol > ) ,
48
50
}
51
+
52
+ impl Default for DesktopProtocol {
53
+ fn default ( ) -> Self {
54
+ Self :: List ( Vec :: new ( ) )
55
+ }
56
+ }
You can’t perform that action at this time.
0 commit comments