mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Handle getters and setters in documentation template assist
This commit is contained in:
parent
825ce48180
commit
f1b6e45fba
5 changed files with 252 additions and 55 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue