Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/tests/generated.rs')
| -rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 485b807d05..53e5d08590 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs @@ -1036,6 +1036,7 @@ struct Person { impl Person { /// Get a reference to the person's name. + #[must_use] fn $0name(&self) -> &str { self.name.as_ref() } @@ -1060,6 +1061,7 @@ struct Person { impl Person { /// Get a mutable reference to the person's name. + #[must_use] fn $0name_mut(&mut self) -> &mut String { &mut self.name } @@ -1133,6 +1135,7 @@ struct Ctx<T: Clone> { } impl<T: Clone> Ctx<T> { + #[must_use] fn $0new(data: T) -> Self { Self { data } } } "#####, |