aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists/src/tests/generated.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-23 21:48:35 +0100
committerGitHub <[email protected]>2021-05-23 21:48:35 +0100
commit951c0e95f44bf7947c2a46ef9e8ff2616823faba (patch)
treef202726bcd9676b919d04d638f9fafa6f9b801e9 /crates/ide_assists/src/tests/generated.rs
parente0864c9c153c88a4bc3b75d0cc5501678a21183a (diff)
parent8696c82777f9992fceadc531536bf90b64cf753d (diff)
Merge #8948
8948: feat: generate getter assist places the cursor at the generated function r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide_assists/src/tests/generated.rs')
-rw-r--r--crates/ide_assists/src/tests/generated.rs4
1 files changed, 2 insertions, 2 deletions
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 {
786 786
787impl Person { 787impl Person {
788 /// Get a reference to the person's name. 788 /// Get a reference to the person's name.
789 fn name(&self) -> &String { 789 fn $0name(&self) -> &String {
790 &self.name 790 &self.name
791 } 791 }
792} 792}
@@ -810,7 +810,7 @@ struct Person {
810 810
811impl Person { 811impl Person {
812 /// Get a mutable reference to the person's name. 812 /// Get a mutable reference to the person's name.
813 fn name_mut(&mut self) -> &mut String { 813 fn $0name_mut(&mut self) -> &mut String {
814 &mut self.name 814 &mut self.name
815 } 815 }
816} 816}