From 3762cc7465e485948b426857b265f274688dedea Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 18 Jun 2021 23:56:15 +0300 Subject: minor: use minicore --- crates/ide_assists/src/handlers/convert_into_to_from.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crates/ide_assists/src/handlers/convert_into_to_from.rs') 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}; // Converts an Into impl to an equivalent From impl. // // ``` -// # //- /lib.rs crate:core -// # pub mod convert { pub trait Into { pub fn into(self) -> T; } } -// # //- /lib.rs crate:main deps:core -// # use core::convert::Into; +// # //- minicore: from // impl $0Into for usize { // fn into(self) -> Thing { // Thing { @@ -28,7 +25,6 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; // ``` // -> // ``` -// # use core::convert::Into; // impl From for Thing { // fn from(val: usize) -> Self { // Thing { -- cgit v1.2.3