mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-16 23:36:13 +00:00
add_missing_impl_members
no longer breaks indentation
This commit is contained in:
parent
a0db4781dc
commit
e07d6382de
3 changed files with 106 additions and 4 deletions
|
@ -465,6 +465,8 @@ impl ast::Impl {
|
|||
}
|
||||
|
||||
impl ast::AssocItemList {
|
||||
/// Attention! This function does align the first line of `item` with respect to `self`,
|
||||
/// but it does _not_ change indentation of other lines (if any).
|
||||
pub fn add_item(&self, item: ast::AssocItem) {
|
||||
let (indent, position, whitespace) = match self.assoc_items().last() {
|
||||
Some(last_item) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue