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
let len = ifskip(&self.a){0}else{1};letmut state = serializer.serialize_struct("S", len)?;if !skip(&self.a){
state.serialize_field("a",&self.a)?;}
state.end()
It would be more reasonable like this:
let skip_a = skip(&self.a);let len = if skip_a {0}else{1};letmut state = serializer.serialize_struct("S", len)?;if !skip_a {
state.serialize_field("a",&self.a)?;}
state.end()
The text was updated successfully, but these errors were encountered:
This turns into (effectively):
It would be more reasonable like this:
The text was updated successfully, but these errors were encountered: