From 8696c82777f9992fceadc531536bf90b64cf753d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 23 May 2021 23:22:38 +0300 Subject: feat: generate getter assist places the cursor at the generated function --- crates/ide_assists/src/tests/generated.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_assists/src/tests/generated.rs') diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 4406406a2..ffc915fd4 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs @@ -786,7 +786,7 @@ struct Person { impl Person { /// Get a reference to the person's name. - fn name(&self) -> &String { + fn $0name(&self) -> &String { &self.name } } @@ -810,7 +810,7 @@ struct Person { impl Person { /// Get a mutable reference to the person's name. - fn name_mut(&mut self) -> &mut String { + fn $0name_mut(&mut self) -> &mut String { &mut self.name } } -- cgit v1.2.3