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 --- crates/assists/src/handlers/move_bounds.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/assists/src/handlers/move_bounds.rs') diff --git a/crates/assists/src/handlers/move_bounds.rs b/crates/assists/src/handlers/move_bounds.rs index e2e461520..cf260c6f8 100644 --- a/crates/assists/src/handlers/move_bounds.rs +++ b/crates/assists/src/handlers/move_bounds.rs @@ -12,7 +12,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; // Moves inline type bounds to a where clause. // // ``` -// fn applyF: FnOnce(T) -> U>(f: F, x: T) -> U { +// fn apply U>(f: F, x: T) -> U { // f(x) // } // ``` @@ -103,7 +103,7 @@ mod tests { check_assist( move_bounds_to_where_clause, r#" - fn fooF: FnOnce(T) -> T>() {} + fn foo T>() {} "#, r#" fn foo() where T: u32, F: FnOnce(T) -> T {} @@ -116,7 +116,7 @@ mod tests { check_assist( move_bounds_to_where_clause, r#" - implT> A {} + impl A {} "#, r#" impl A where U: u32 {} @@ -129,7 +129,7 @@ mod tests { check_assist( move_bounds_to_where_clause, r#" - struct A<<|>T: Iterator> {} + struct A<$0T: Iterator> {} "#, r#" struct A where T: Iterator {} @@ -142,7 +142,7 @@ mod tests { check_assist( move_bounds_to_where_clause, r#" - struct Pair<<|>T: u32>(T, T); + struct Pair<$0T: u32>(T, T); "#, r#" struct Pair(T, T) where T: u32; -- cgit v1.2.3