Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/generate_function.rs')
-rw-r--r--crates/ide-assists/src/handlers/generate_function.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide-assists/src/handlers/generate_function.rs b/crates/ide-assists/src/handlers/generate_function.rs
index aac145a721..30084d23d1 100644
--- a/crates/ide-assists/src/handlers/generate_function.rs
+++ b/crates/ide-assists/src/handlers/generate_function.rs
@@ -47,7 +47,7 @@ use crate::{
// bar("", baz());
// }
//
-// fn bar(arg: &str, baz: Baz) ${0:-> _} {
+// fn bar(arg: &'static str, baz: Baz) ${0:-> _} {
// todo!()
// }
//
@@ -1518,7 +1518,7 @@ fn foo() {
bar("bar")
}
-fn bar(arg: &str) {
+fn bar(arg: &'static str) {
${0:todo!()}
}
"#,
@@ -2135,7 +2135,7 @@ fn foo() {
bar(baz(), baz(), "foo", "bar")
}
-fn bar(baz_1: Baz, baz_2: Baz, arg_1: &str, arg_2: &str) {
+fn bar(baz_1: Baz, baz_2: Baz, arg_1: &'static str, arg_2: &'static str) {
${0:todo!()}
}
"#,
@@ -3103,7 +3103,7 @@ pub struct Foo {
field_2: String,
}
impl Foo {
- fn new(baz_1: Baz, baz_2: Baz, arg_1: &str, arg_2: &str) -> Self {
+ fn new(baz_1: Baz, baz_2: Baz, arg_1: &'static str, arg_2: &'static str) -> Self {
${0:Self { field_1: todo!(), field_2: todo!() }}
}
}