diff options
author | Aleksey Kladov <[email protected]> | 2021-06-18 21:56:15 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-18 21:59:47 +0100 |
commit | 3762cc7465e485948b426857b265f274688dedea (patch) | |
tree | 680a9bc7a1d2fbd755bca0ffd12d256c33cf1063 /crates/ide_assists/src/handlers/convert_into_to_from.rs | |
parent | 90da9fc9b302de46097065f0d6428ad33c292217 (diff) |
minor: use minicore
Diffstat (limited to 'crates/ide_assists/src/handlers/convert_into_to_from.rs')
-rw-r--r-- | crates/ide_assists/src/handlers/convert_into_to_from.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ide_assists/src/handlers/convert_into_to_from.rs b/crates/ide_assists/src/handlers/convert_into_to_from.rs index 79a0c4879..2d8b936cd 100644 --- a/crates/ide_assists/src/handlers/convert_into_to_from.rs +++ b/crates/ide_assists/src/handlers/convert_into_to_from.rs | |||
@@ -13,10 +13,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; | |||
13 | // Converts an Into impl to an equivalent From impl. | 13 | // Converts an Into impl to an equivalent From impl. |
14 | // | 14 | // |
15 | // ``` | 15 | // ``` |
16 | // # //- /lib.rs crate:core | 16 | // # //- minicore: from |
17 | // # pub mod convert { pub trait Into<T> { pub fn into(self) -> T; } } | ||
18 | // # //- /lib.rs crate:main deps:core | ||
19 | // # use core::convert::Into; | ||
20 | // impl $0Into<Thing> for usize { | 17 | // impl $0Into<Thing> for usize { |
21 | // fn into(self) -> Thing { | 18 | // fn into(self) -> Thing { |
22 | // Thing { | 19 | // Thing { |
@@ -28,7 +25,6 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; | |||
28 | // ``` | 25 | // ``` |
29 | // -> | 26 | // -> |
30 | // ``` | 27 | // ``` |
31 | // # use core::convert::Into; | ||
32 | // impl From<usize> for Thing { | 28 | // impl From<usize> for Thing { |
33 | // fn from(val: usize) -> Self { | 29 | // fn from(val: usize) -> Self { |
34 | // Thing { | 30 | // Thing { |