From 03cd0d41da0a55235fd9bdb0683e7be7dc5a8983 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 9 Oct 2020 15:44:48 -0700 Subject: [PATCH] Fix cursive_run doc --- cursive-core/src/cursive_run.rs | 12 ++++++------ cursive-core/src/theme/mod.rs | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cursive-core/src/cursive_run.rs b/cursive-core/src/cursive_run.rs index dc0c75c..9093f1c 100644 --- a/cursive-core/src/cursive_run.rs +++ b/cursive-core/src/cursive_run.rs @@ -101,9 +101,9 @@ where /// Returns `true` if an event or callback was received, /// and `false` otherwise. /// - /// [1]: CursiveRun::run() - /// [2]: CursiveRun::step() - /// [3]: CursiveRun::post_events() + /// [1]: CursiveRunner::run() + /// [2]: CursiveRunner::step() + /// [3]: CursiveRunner::post_events() pub fn process_events(&mut self) -> bool { // Things are boring if nothing significant happened. let mut boring = true; @@ -137,9 +137,9 @@ where /// /// You should call this after [`process_events`][3]. /// - /// [1]: Cursive::run() - /// [2]: Cursive::step() - /// [3]: Cursive::process_events() + /// [1]: CursiveRunner::run() + /// [2]: CursiveRunner::step() + /// [3]: CursiveRunner::process_events() pub fn post_events(&mut self, received_something: bool) { let boring = !received_something; // How many times should we try if it's still boring? diff --git a/cursive-core/src/theme/mod.rs b/cursive-core/src/theme/mod.rs index 5aabe53..b43a62b 100644 --- a/cursive-core/src/theme/mod.rs +++ b/cursive-core/src/theme/mod.rs @@ -222,8 +222,10 @@ use std::path::Path; pub struct Theme { /// Whether views in a StackView should have shadows. pub shadow: bool, + /// How view borders should be drawn. pub borders: BorderStyle, + /// What colors should be used through the application? pub palette: Palette, }