commit | 6c0a6092af732010bda73168cc7585b1768c0b38 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Mar 31 22:47:39 2018 +0200 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Mar 31 22:47:39 2018 +0200 |
tree | 506940d018c6548be9ea33a8acec6505246544fc | |
parent | db40206d73066f43514110cd88323081211a5d94 [diff] [blame] |
Clean up unused import warning
diff --git a/src/punctuated.rs b/src/punctuated.rs index b2f5833..63d289e 100644 --- a/src/punctuated.rs +++ b/src/punctuated.rs
@@ -27,7 +27,9 @@ //! ^^^^^ ~~~~~ ^^^^ //! ``` -use std::iter::{self, FromIterator}; +#[cfg(any(feature = "full", feature = "derive"))] +use std::iter; +use std::iter::FromIterator; use std::ops::{Index, IndexMut}; use std::slice; use std::vec;