about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2023-11-10 10:11:24 +0800
committersurechen <chenshuo17@huawei.com>2023-12-10 10:56:22 +0800
commit5285df4f6cdfc9048b108157e3c70b67473d5f0b (patch)
tree1a25fbdfe48c64aef71340c8dc57bd318bea5af2
parent76c972cb54b65b01c356a89998154231bff59b19 (diff)
downloadrust-5285df4f6cdfc9048b108157e3c70b67473d5f0b.tar.gz
rust-5285df4f6cdfc9048b108157e3c70b67473d5f0b.zip
remove redundant imports
detects redundant imports that can be eliminated.

for #117772 :

In order to facilitate review and modification, split the checking code and
removing redundant imports code into two PR.
-rw-r--r--crates/stdx/src/anymap.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/stdx/src/anymap.rs b/crates/stdx/src/anymap.rs
index fd44e6c6d0f..7dba002c6ec 100644
--- a/crates/stdx/src/anymap.rs
+++ b/crates/stdx/src/anymap.rs
@@ -17,7 +17,6 @@
 
 #![warn(missing_docs, unused_results)]
 
-use core::convert::TryInto;
 use core::hash::Hasher;
 
 /// A hasher designed to eke a little more speed out, given `TypeId`’s known characteristics.