From 5af367fa186eceb8dd47df8782e22994e1fc7d2a Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 3 Jan 2018 16:51:07 +0100 Subject: [PATCH] Add missing `use` statements to doc example --- src/view/identifiable.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/view/identifiable.rs b/src/view/identifiable.rs index f4f04e6..15a116c 100644 --- a/src/view/identifiable.rs +++ b/src/view/identifiable.rs @@ -14,6 +14,11 @@ pub trait Identifiable: View + Sized { /// # Examples /// /// ```rust,no_run + /// # use cursive::Cursive; + /// # use cursive::views::TextView; + /// # use cursive::view::Boxable; + /// use cursive::view::Identifiable; + /// /// let mut siv = Cursive::new(); /// siv.add_layer( /// TextView::new("foo")