You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/lib.rs:112:17:115:18 warning: you seem to be trying to usematchfor destructuring a single pattern.Consider using `iflet`, #[warn(single_match)] on by default
src/lib.rs:112 match self.$field_name {
src/lib.rs:113Some(ref value) => { d.insert(stringify!($field_name).to_string(), value.to_json());},
src/lib.rs:114None => {},
src/lib.rs:115}
src/lib.rs:118:9:118:24 note:in this expansion of optional! (defined in src/lib.rs)
src/lib.rs:112:17:115:18 help: try this
src/lib.rs:ifletSome(ref value) = self.$field_name {
src/lib.rs:Some(ref value) => { d.insert(stringify!($field_name).to_string(), value.to_json());},
src/lib.rs:None => {},
src/lib.rs:}
src/lib.rs:)
src/lib.rs:}
It gives me the following:
while the suggestion should be (afaik):
The text was updated successfully, but these errors were encountered: