Handle getters and setters in documentation template assist

This commit is contained in:
Jonas Schievink 2022-05-16 19:10:38 +02:00
parent 825ce48180
commit f1b6e45fba
5 changed files with 252 additions and 55 deletions

View file

@ -568,10 +568,6 @@ impl ReferenceConversion {
| ReferenceConversionType::Result => format!("self.{}.as_ref()", field_name),
}
}
pub(crate) fn is_copy(&self) -> bool {
matches!(self.conversion, ReferenceConversionType::Copy)
}
}
// FIXME: It should return a new hir::Type, but currently constructing new types is too cumbersome