Fix default with optional props (#4995)
* fix default with optional props * fix core macro tests
This commit is contained in:
1 parent
6e952f27a7
commit
6df20ef3f7
2 files changed
+6
-5
No files matched your search
@@ -35,13 +35,13 @@ mod test_default_into {
|
||||
pub str_default: String,
|
||||
|
||||
// Test options
|
||||
#[props(into, default = Some("abc"))]
|
||||
#[props(into, default = Some("abc".into()))]
|
||||
pub opt_into_w_default_val: Option<String>,
|
||||
|
||||
#[props(into, default)]
|
||||
pub opt_into_w_default: Option<String>,
|
||||
|
||||
#[props(default = Some("abc"))]
|
||||
#[props(default = Some("abc".into()))]
|
||||
pub opt_default: Option<String>,
|
||||
|
||||
// Test no default
|
||||
|
||||
Reference in new issue
Block a user