From 2a4742f67b5db490f18664c4079872320e1cdc2a Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 20 Jul 2016 21:43:10 -0700 Subject: [PATCH] Use prelude in docs --- Readme.md | 3 +-- src/lib.rs | 10 ++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Readme.md b/Readme.md index 9d2c6da..27e2a99 100644 --- a/Readme.md +++ b/Readme.md @@ -27,8 +27,7 @@ cursive = { git = "https://github.com/gyscos/Cursive" } ```rust extern crate cursive; -use cursive::Cursive; -use cursive::view::{TextView, Dialog}; +use cursive::prelude::*; fn main() { // Creates the cursive root - required for every application. diff --git a/src/lib.rs b/src/lib.rs index 68561b0..54f1937 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,8 +33,7 @@ //! ```no_run //! extern crate cursive; //! -//! use cursive::Cursive; -//! use cursive::view::TextView; +//! use cursive::prelude::*; //! //! fn main() { //! let mut siv = Cursive::new(); @@ -180,12 +179,7 @@ impl Cursive { /// ``` /// # extern crate cursive; /// # - /// # use cursive::Cursive; - /// # use cursive::With; - /// # use cursive::menu::MenuTree; - /// # use cursive::view::Dialog; - /// # use cursive::view::TextView; - /// # use cursive::event::Key; + /// # use cursive::prelude::*; /// # /// # fn main() {