Remove unneeded feature attribute from test suite, and rearrange the `use` clauses a bit
#![allow(clippy::all)]
#![allow(dead_code)]
-#![feature(type_name_of_val)]
use staticvec::*;
@@ -9,6 +8,9 @@ use core::cell;
#[cfg(feature = "std")]
use std::panic::{self, AssertUnwindSafe};
+#[cfg(feature = "std")]
+use std::io::{IoSlice, Write};
+
#[cfg(not(miri))]
#[cfg(feature = "std")]
use cool_asserts::assert_panics;
@@ -91,9 +93,6 @@ impl Drop for Struct {
}
}
-#[cfg(feature = "std")]
-use std::io::{IoSlice, Write};
-
#[test]
fn append() {
let mut a = staticvec![Struct { s: "A" }, Struct { s: "B" }, Struct { s: "C" }];
@@ -213,7 +212,6 @@ fn clone_from_longer() {
fn panicking_clone() {
// An earlier implementation of clone incorrectly leaked values in the event
// of a panicking clone. This test ensures that that does not happen.
-
// This struct will, if so configured, panic on a clone. Uses
// LifespanCountingInstance to track instantiations and deletions, so that
// we can ensure the correct number of drops are happening
