mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-29 23:55:52 +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:
@@ -95,7 +95,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 } ));
|
||||
}
|
||||
}
|
||||
@@ -180,7 +179,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