From 86dea92d06599a14f42ed2eaa0fe4799095a2ebb Mon Sep 17 00:00:00 2001 From: gwenn <gtreguier@gmail.com> Date: Mon, 23 Jul 2018 21:06:29 +0200 Subject: [PATCH] Rustfmt --- examples/example.rs | 3 +-- src/lib.rs | 10 +++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/example.rs b/examples/example.rs index 51f9154d..adbbbcd4 100644 --- a/examples/example.rs +++ b/examples/example.rs @@ -39,8 +39,7 @@ impl Hinter for MyHelper { } } -impl Helper for MyHelper { -} +impl Helper for MyHelper {} fn main() { init_logger().is_ok(); diff --git a/src/lib.rs b/src/lib.rs index b37409e0..a5e72bbc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -623,10 +623,14 @@ fn readline_direct() -> Result<String> { /// /// TODO Tokenizer/parser used for both completion, suggestion, highlighting. /// (parse current line once) -pub trait Helper where Self: Completer, Self: Hinter { +pub trait Helper +where + Self: Completer, + Self: Hinter, +{ /// Decorate `line` with [ansi color](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters). - /// Rustyline will try to handle escape sequence for ansi color on windows when not supported natively (windows <10). - /// TODO to be used + /// Rustyline will try to handle escape sequence for ansi color on windows + /// when not supported natively (windows <10). TODO to be used fn highligh(line: &str) -> Cow<str> { Borrowed(line) } -- GitLab