Fix proc hover printing the name twice

Introduced in b868daaa4c.
This commit is contained in:
Tad Hardesty 2019-11-05 19:00:55 -08:00
parent bd255d1ca7
commit babe8beb89

View file

@ -594,7 +594,6 @@ pub struct Parameter {
impl fmt::Display for Parameter {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "{}{}", self.var_type, self.name)?;
fmt.write_str(&self.name)?;
if !self.input_type.is_empty() {
write!(fmt, " as {}", self.input_type)?;
}