mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-30 16:18:49 +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:
@@ -104,7 +104,6 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
{let mut v = Vec::new();
|
||||
v.extend(self.gp.iter().map(|v|*v));
|
||||
v.extend([].iter().map(|v|*v));
|
||||
v } ));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user