Skip to content

Commit 67c2679

Browse files
committed
clean up
1 parent 7b3368c commit 67c2679

File tree

1 file changed

+1
-11
lines changed
  • sway-lsp/tests/fixtures/inlay_hints/src

1 file changed

+1
-11
lines changed

sway-lsp/tests/fixtures/inlay_hints/src/main.sw

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,18 @@ const CONSTANT: u64 = 42;
55
enum MyEnum {
66
A: u64,
77
}
8-
98
struct MyStruct {
109
a: u64,
1110
}
12-
1311
fn my_function(foo: u64, bar: u64, long_argument_name: u64) -> u64 {
1412
foo + bar + long_argument_name
1513
}
16-
1714
fn identity<T>(x: T) -> T {
1815
x
1916
}
20-
2117
fn two_generics<A, B>(_a: A, b: B) -> B {
2218
b
2319
}
24-
2520
fn three_generics<A, B, C>(a: A, b: B, _c: C) -> B {
2621
let _a: A = a;
2722
b
@@ -35,7 +30,7 @@ fn main() {
3530
let _z = my_function(foo, bar, 3);
3631
let long_argument_name = 3;
3732
let _w = my_function(foo, bar, long_argument_name);
38-
33+
let _function_call = identity(my_function(1, bar, 3));
3934
let _a: bool = identity(true);
4035
let _b: u32 = identity(10u32);
4136
let _c: u64 = identity(42);
@@ -46,16 +41,11 @@ fn main() {
4641
let _tuple = identity((1, 2, 3));
4742
let _array = identity([1, 2, 3]);
4843
let _enum = identity(MyEnum::A(1));
49-
5044
let s = MyStruct { a: 1 };
5145
let _struct_field_access = identity(s.a);
52-
5346
let t = (0, 1, 9);
5447
let _tuple_elem_access = identity(t.2);
55-
5648
let a = [1, 2, 3];
5749
let _array_index = identity(a[1]);
58-
59-
let _function_call = identity(my_function(1, bar, 3));
6050
}
6151

0 commit comments

Comments
 (0)