aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-06-20 09:56:39 +0100
committerNerdyPepper <[email protected]>2019-06-20 09:56:39 +0100
commitf98a2796b7c1379b204a24586e598d7f8da9da9f (patch)
treedd7ffa9daa50f834597fa32c37800bcfab362e89 /src
parentede1886262030d445ebf33e6093b5b282f0895dc (diff)
fixes for line length
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 1a05904..8a66c4d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -47,7 +47,7 @@ impl Hinter for AnswerHinter {
47 } 47 }
48 let dry_run = eval_math_expression(&input); 48 let dry_run = eval_math_expression(&input);
49 match dry_run { 49 match dry_run {
50 Ok(ans) => return Some(format!("\x1b[90m = {}\x1b[0m", ans)), 50 Ok(ans) => return Some(format!(" = {}", ans)),
51 Err(_) => return Some(format!("")) 51 Err(_) => return Some(format!(""))
52 }; 52 };
53 } 53 }
@@ -59,7 +59,7 @@ impl Highlighter for RLHelper {
59 } 59 }
60 60
61 fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> { 61 fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> {
62 Owned("\x1b[1m".to_owned() + hint + "\x1b[m") 62 Owned("\x1b[90m".to_owned() + hint + "\x1b[0m")
63 } 63 }
64 64
65 fn highlight<'l>(&self, line: &'l str, pos: usize) -> Cow<'l, str> { 65 fn highlight<'l>(&self, line: &'l str, pos: usize) -> Cow<'l, str> {