mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-03 01:52:23 +01:00
fix(rustup): type-inference fails on empty vec
Previously this wasn't the case, as the type could be inferred by the type of the parent-vector to extend. Apparently this feature was removed, probably for good reason.
This commit is contained in:
@@ -266,7 +266,9 @@ ${value_unwrap}\
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
{let mut v = Vec::new();
|
||||
v.extend(self.gp.iter().map(|v|*v));
|
||||
% if comma_sep_fields(optional_prop_names):
|
||||
v.extend([${comma_sep_fields(optional_prop_names)}].iter().map(|v|*v));
|
||||
% endif
|
||||
v } ));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user