]> git.lizzy.rs Git - rust.git/commitdiff
Remove unneeded ToString import in liballoc slice
authorIvan Tham <pickfire@riseup.net>
Wed, 8 Jul 2020 04:47:19 +0000 (12:47 +0800)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 04:47:19 +0000 (12:47 +0800)
src/liballoc/slice.rs

index d7dc2174d665f3bce0a3ebb5da7da0b328b1576e..daa1a13c1ea3e0b0d531b514d3a744c9dda4bd75 100644 (file)
 // `test_permutations` test
 mod hack {
     use crate::boxed::Box;
-    #[cfg(test)]
-    use crate::string::ToString;
     use crate::vec::Vec;
 
     // We shouldn't add inline attribute to this since this is used in