mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Rename impl edit method to be more explicit
This commit is contained in:
parent
532be0e780
commit
7d90bb1f47
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ where
|
|||
|
||||
impl ast::Impl {
|
||||
#[must_use]
|
||||
pub fn with_items(&self, items: ast::AssocItemList) -> ast::Impl {
|
||||
pub fn with_assoc_item_list(&self, items: ast::AssocItemList) -> ast::Impl {
|
||||
let mut to_insert: ArrayVec<[SyntaxElement; 2]> = ArrayVec::new();
|
||||
if let Some(old_items) = self.assoc_item_list() {
|
||||
let to_replace: SyntaxElement = old_items.syntax().clone().into();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue