diff --git a/examples/progress.rs b/examples/progress.rs index 0897036..107b036 100644 --- a/examples/progress.rs +++ b/examples/progress.rs @@ -4,7 +4,7 @@ extern crate rand; use cursive::Cursive; use cursive::traits::*; use cursive::views::{Button, Dialog, LinearLayout, ProgressBar, TextView}; -use cursive::views::Counter; +use cursive::utils::Counter; use rand::Rng; use std::cmp::min; use std::thread; diff --git a/src/printer.rs b/src/printer.rs index 0b8c3fe..8ac6825 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -123,7 +123,7 @@ impl<'a> Printer<'a> { /// # use cursive::backend; /// # let b = backend::dummy::Backend::init(); /// # let t = theme::load_default(); - /// # let printer = Printer::new((6,4), &t, &b); + /// # let printer = Printer::new((6,4), &t, &*b); /// printer.with_color(theme::ColorStyle::highlight(), |printer| { /// printer.print((0,0), "This text is highlighted!"); /// }); @@ -201,7 +201,7 @@ impl<'a> Printer<'a> { /// # use cursive::backend; /// # let b = backend::dummy::Backend::init(); /// # let t = theme::load_default(); - /// # let printer = Printer::new((6,4), &t, &b); + /// # let printer = Printer::new((6,4), &t, &*b); /// printer.print_box((0,0), (6,4), false); /// ``` pub fn print_box, S: Into>( diff --git a/src/view/scroll.rs b/src/view/scroll.rs index 2399bbf..0ee3097 100644 --- a/src/view/scroll.rs +++ b/src/view/scroll.rs @@ -234,7 +234,7 @@ impl ScrollBase { /// # let scrollbase = ScrollBase::new(); /// # let b = backend::dummy::Backend::init(); /// # let t = theme::load_default(); - /// # let printer = Printer::new((5,1), &t, &b); + /// # let printer = Printer::new((5,1), &t, &*b); /// # let printer = &printer; /// let lines = ["Line 1", "Line number 2"]; /// scrollbase.draw(printer, |printer, i| {