From 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Wed, 6 Jan 2021 20:15:48 +0000 Subject: Change <|> to $0 - Rebase --- .../src/handlers/replace_impl_trait_with_generic.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/assists/src/handlers/replace_impl_trait_with_generic.rs') diff --git a/crates/assists/src/handlers/replace_impl_trait_with_generic.rs b/crates/assists/src/handlers/replace_impl_trait_with_generic.rs index 6738bc134..ff25b61ea 100644 --- a/crates/assists/src/handlers/replace_impl_trait_with_generic.rs +++ b/crates/assists/src/handlers/replace_impl_trait_with_generic.rs @@ -7,7 +7,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; // Replaces `impl Trait` function argument with the named generic. // // ``` -// fn foo(bar: <|>impl Bar) {} +// fn foo(bar: $0impl Bar) {} // ``` // -> // ``` @@ -56,7 +56,7 @@ mod tests { check_assist( replace_impl_trait_with_generic, r#" - fn foo(bar: <|>impl Bar) {} + fn foo(bar: $0impl Bar) {} "#, r#" fn foo(bar: B) {} @@ -69,7 +69,7 @@ mod tests { check_assist( replace_impl_trait_with_generic, r#" - fn foo(bar: <|>impl Bar) {} + fn foo(bar: $0impl Bar) {} "#, r#" fn foo(bar: B) {} @@ -82,7 +82,7 @@ mod tests { check_assist( replace_impl_trait_with_generic, r#" - fn foo(foo: impl Foo, bar: <|>impl Bar) {} + fn foo(foo: impl Foo, bar: $0impl Bar) {} "#, r#" fn foo(foo: impl Foo, bar: B) {} @@ -95,7 +95,7 @@ mod tests { check_assist( replace_impl_trait_with_generic, r#" - fn foo<>(bar: <|>impl Bar) {} + fn foo<>(bar: $0impl Bar) {} "#, r#" fn foo(bar: B) {} @@ -109,7 +109,7 @@ mod tests { replace_impl_trait_with_generic, r#" fn foo< - >(bar: <|>impl Bar) {} + >(bar: $0impl Bar) {} "#, r#" fn foo(bar: <|>impl Bar) {} + fn foo(bar: $0impl Bar) {} "#, r#" fn foo(bar: C) {} @@ -141,7 +141,7 @@ mod tests { G: Foo, F, H, - >(bar: <|>impl Bar) {} + >(bar: $0impl Bar) {} "#, r#" fn foo< @@ -158,7 +158,7 @@ mod tests { check_assist( replace_impl_trait_with_generic, r#" - fn foo(bar: <|>impl Foo + Bar) {} + fn foo(bar: $0impl Foo + Bar) {} "#, r#" fn foo(bar: F) {} -- cgit v1.2.3