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/reorder_fields.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/assists/src/handlers/reorder_fields.rs') diff --git a/crates/assists/src/handlers/reorder_fields.rs b/crates/assists/src/handlers/reorder_fields.rs index fe5574242..fba7d6ddb 100644 --- a/crates/assists/src/handlers/reorder_fields.rs +++ b/crates/assists/src/handlers/reorder_fields.rs @@ -15,7 +15,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; // // ``` // struct Foo {foo: i32, bar: i32}; -// const test: Foo = <|>Foo {bar: 0, foo: 1} +// const test: Foo = $0Foo {bar: 0, foo: 1} // ``` // -> // ``` @@ -126,7 +126,7 @@ struct Foo { bar: i32, } -const test: Foo = <|>Foo { foo: 0, bar: 0 }; +const test: Foo = $0Foo { foo: 0, bar: 0 }; "#, ) } @@ -137,7 +137,7 @@ const test: Foo = <|>Foo { foo: 0, bar: 0 }; reorder_fields, r#" struct Foo {}; -const test: Foo = <|>Foo {} +const test: Foo = $0Foo {} "#, ) } @@ -148,7 +148,7 @@ const test: Foo = <|>Foo {} reorder_fields, r#" struct Foo {foo: i32, bar: i32}; -const test: Foo = <|>Foo {bar: 0, foo: 1} +const test: Foo = $0Foo {bar: 0, foo: 1} "#, r#" struct Foo {foo: i32, bar: i32}; @@ -166,7 +166,7 @@ struct Foo { foo: i64, bar: i64, baz: i64 } fn f(f: Foo) -> { match f { - <|>Foo { baz: 0, ref mut bar, .. } => (), + $0Foo { baz: 0, ref mut bar, .. } => (), _ => () } } @@ -197,7 +197,7 @@ struct Foo { impl Foo { fn new() -> Foo { let foo = String::new(); - <|>Foo { + $0Foo { bar: foo.clone(), extra: "Extra field", foo, -- cgit v1.2.3