diff options
author | Aleksei Sidorov <[email protected]> | 2020-09-04 20:58:50 +0100 |
---|---|---|
committer | Aleksei Sidorov <[email protected]> | 2020-09-04 20:58:50 +0100 |
commit | e1b8d836a9b64169a8337be674c78cac20940b92 (patch) | |
tree | a0b154fa66167339aca76e434523935e97a9e593 /crates/assists/src/handlers | |
parent | ef0a1b2e58b6047223a68f700ef16fcc21f9f208 (diff) |
Remove unnecessary comma
Diffstat (limited to 'crates/assists/src/handlers')
-rw-r--r-- | crates/assists/src/handlers/replace_impl_trait_with_generic.rs | 18 |
1 files changed, 9 insertions, 9 deletions
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 748c528d4..6738bc134 100644 --- a/crates/assists/src/handlers/replace_impl_trait_with_generic.rs +++ b/crates/assists/src/handlers/replace_impl_trait_with_generic.rs | |||
@@ -11,7 +11,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; | |||
11 | // ``` | 11 | // ``` |
12 | // -> | 12 | // -> |
13 | // ``` | 13 | // ``` |
14 | // fn foo<B: Bar,>(bar: B) {} | 14 | // fn foo<B: Bar>(bar: B) {} |
15 | // ``` | 15 | // ``` |
16 | pub(crate) fn replace_impl_trait_with_generic( | 16 | pub(crate) fn replace_impl_trait_with_generic( |
17 | acc: &mut Assists, | 17 | acc: &mut Assists, |
@@ -59,7 +59,7 @@ mod tests { | |||
59 | fn foo<G>(bar: <|>impl Bar) {} | 59 | fn foo<G>(bar: <|>impl Bar) {} |
60 | "#, | 60 | "#, |
61 | r#" | 61 | r#" |
62 | fn foo<G, B: Bar,>(bar: B) {} | 62 | fn foo<G, B: Bar>(bar: B) {} |
63 | "#, | 63 | "#, |
64 | ); | 64 | ); |
65 | } | 65 | } |
@@ -72,7 +72,7 @@ mod tests { | |||
72 | fn foo(bar: <|>impl Bar) {} | 72 | fn foo(bar: <|>impl Bar) {} |
73 | "#, | 73 | "#, |
74 | r#" | 74 | r#" |
75 | fn foo<B: Bar,>(bar: B) {} | 75 | fn foo<B: Bar>(bar: B) {} |
76 | "#, | 76 | "#, |
77 | ); | 77 | ); |
78 | } | 78 | } |
@@ -85,7 +85,7 @@ mod tests { | |||
85 | fn foo<G>(foo: impl Foo, bar: <|>impl Bar) {} | 85 | fn foo<G>(foo: impl Foo, bar: <|>impl Bar) {} |
86 | "#, | 86 | "#, |
87 | r#" | 87 | r#" |
88 | fn foo<G, B: Bar,>(foo: impl Foo, bar: B) {} | 88 | fn foo<G, B: Bar>(foo: impl Foo, bar: B) {} |
89 | "#, | 89 | "#, |
90 | ); | 90 | ); |
91 | } | 91 | } |
@@ -98,7 +98,7 @@ mod tests { | |||
98 | fn foo<>(bar: <|>impl Bar) {} | 98 | fn foo<>(bar: <|>impl Bar) {} |
99 | "#, | 99 | "#, |
100 | r#" | 100 | r#" |
101 | fn foo<B: Bar,>(bar: B) {} | 101 | fn foo<B: Bar>(bar: B) {} |
102 | "#, | 102 | "#, |
103 | ); | 103 | ); |
104 | } | 104 | } |
@@ -112,7 +112,7 @@ mod tests { | |||
112 | >(bar: <|>impl Bar) {} | 112 | >(bar: <|>impl Bar) {} |
113 | "#, | 113 | "#, |
114 | r#" | 114 | r#" |
115 | fn foo<B: Bar, | 115 | fn foo<B: Bar |
116 | >(bar: B) {} | 116 | >(bar: B) {} |
117 | "#, | 117 | "#, |
118 | ); | 118 | ); |
@@ -127,7 +127,7 @@ mod tests { | |||
127 | fn foo<B>(bar: <|>impl Bar) {} | 127 | fn foo<B>(bar: <|>impl Bar) {} |
128 | "#, | 128 | "#, |
129 | r#" | 129 | r#" |
130 | fn foo<B, C: Bar,>(bar: C) {} | 130 | fn foo<B, C: Bar>(bar: C) {} |
131 | "#, | 131 | "#, |
132 | ); | 132 | ); |
133 | } | 133 | } |
@@ -147,7 +147,7 @@ mod tests { | |||
147 | fn foo< | 147 | fn foo< |
148 | G: Foo, | 148 | G: Foo, |
149 | F, | 149 | F, |
150 | H, B: Bar, | 150 | H, B: Bar |
151 | >(bar: B) {} | 151 | >(bar: B) {} |
152 | "#, | 152 | "#, |
153 | ); | 153 | ); |
@@ -161,7 +161,7 @@ mod tests { | |||
161 | fn foo(bar: <|>impl Foo + Bar) {} | 161 | fn foo(bar: <|>impl Foo + Bar) {} |
162 | "#, | 162 | "#, |
163 | r#" | 163 | r#" |
164 | fn foo<F: Foo + Bar,>(bar: F) {} | 164 | fn foo<F: Foo + Bar>(bar: F) {} |
165 | "#, | 165 | "#, |
166 | ); | 166 | ); |
167 | } | 167 | } |