Skip to content

Commit 9ba661e

Browse files
committed
Remove redundant type parameters
1 parent e0bb729 commit 9ba661e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/rust-analyzer/crates/ide-assists/src/handlers/generate_mut_trait_impl.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl<T> core::ops::Index<Axis> for [T; 3] where T: Copy {
236236
//- minicore: as_ref
237237
struct Foo(i32);
238238
239-
impl<T> core::convert::AsRef$0<i32> for Foo {
239+
impl core::convert::AsRef$0<i32> for Foo {
240240
fn as_ref(&self) -> &i32 {
241241
&self.0
242242
}
@@ -245,13 +245,13 @@ impl<T> core::convert::AsRef$0<i32> for Foo {
245245
r#"
246246
struct Foo(i32);
247247
248-
$0impl<T> core::convert::AsMut<i32> for Foo {
248+
$0impl core::convert::AsMut<i32> for Foo {
249249
fn as_mut(&mut self) -> &mut i32 {
250250
&self.0
251251
}
252252
}
253253
254-
impl<T> core::convert::AsRef<i32> for Foo {
254+
impl core::convert::AsRef<i32> for Foo {
255255
fn as_ref(&self) -> &i32 {
256256
&self.0
257257
}
@@ -362,7 +362,7 @@ impl<T> Index$0<i32> for [T; 3] {}
362362
r#"
363363
pub trait AsRef<T: ?Sized> {}
364364
365-
impl<T> AsRef$0<i32> for [T; 3] {}
365+
impl AsRef$0<i32> for [T; 3] {}
366366
"#,
367367
);
368368
}

0 commit comments

Comments
 (0)