diff --git a/src/lib.rs b/src/lib.rs index 9924439..8561f20 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,6 +68,7 @@ //! to `impl Into`, and populates the field with `value.into()`: //! //! ```rust +//! # use derive_new::new; //! #[derive(new)] //! struct Foo { //! #[new(into)] @@ -81,6 +82,7 @@ //! to `impl IntoIterator`, and populates the field with `value.into_iter().collect()`: //! //! ```rust +//! # use derive_new::new; //! #[derive(new)] //! struct Foo { //! #[new(into_iter = "bool")]