From da7f1eb756ba849b70ccb7e6c961ccf233e19099 Mon Sep 17 00:00:00 2001 From: Lukas Tobias Wirth Date: Thu, 20 May 2021 17:27:51 +0200 Subject: Don't compare ast::Visibility by stringifying --- crates/ide_assists/src/handlers/merge_imports.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'crates/ide_assists/src') diff --git a/crates/ide_assists/src/handlers/merge_imports.rs b/crates/ide_assists/src/handlers/merge_imports.rs index 31854840c..fc117bd9a 100644 --- a/crates/ide_assists/src/handlers/merge_imports.rs +++ b/crates/ide_assists/src/handlers/merge_imports.rs @@ -212,6 +212,20 @@ pub(crate) use std::fmt::{Debug, Display}; ) } + #[test] + fn merge_pub_in_path_crate() { + check_assist( + merge_imports, + r" +pub(in this::path) use std::fmt$0::Debug; +pub(in this::path) use std::fmt::Display; +", + r" +pub(in this::path) use std::fmt::{Debug, Display}; +", + ) + } + #[test] fn test_merge_nested() { check_assist( -- cgit v1.2.3