Skip to content
Snippets Groups Projects
Commit 86dea92d authored by gwenn's avatar gwenn
Browse files

Rustfmt

parent a2368ff9
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,7 @@ impl Hinter for MyHelper {
}
}
impl Helper for MyHelper {
}
impl Helper for MyHelper {}
fn main() {
init_logger().is_ok();
......
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment