From a9e3676d3179ba555ef42d0f03579feb723f26bc Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 19 Jan 2023 22:14:52 -0500 Subject: [PATCH] Fix formatting nitpick --- src/lune/console.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lune/console.rs b/src/lune/console.rs index 12e9567..77ef8b3 100644 --- a/src/lune/console.rs +++ b/src/lune/console.rs @@ -208,8 +208,8 @@ fn console_log(_: &Lua, args: MultiValue) -> Result<()> { fn console_info(_: &Lua, args: MultiValue) -> Result<()> { print!( - "{}{}[INFO]{}{} ", - STYLE_BOLD, COLOR_CYAN, COLOR_RESET, STYLE_RESET + "{}[{}INFO{}{}]{} ", + STYLE_BOLD, COLOR_CYAN, COLOR_RESET, STYLE_BOLD, STYLE_RESET ); let s = pretty_format_multi_value(&args)?; println!("{}", s); @@ -219,8 +219,8 @@ fn console_info(_: &Lua, args: MultiValue) -> Result<()> { fn console_warn(_: &Lua, args: MultiValue) -> Result<()> { print!( - "{}{}[WARN]{}{} ", - STYLE_BOLD, COLOR_YELLOW, COLOR_RESET, STYLE_RESET + "{}[{}WARN{}{}]{} ", + STYLE_BOLD, COLOR_YELLOW, COLOR_RESET, STYLE_BOLD, STYLE_RESET ); let s = pretty_format_multi_value(&args)?; println!("{}", s); @@ -230,8 +230,8 @@ fn console_warn(_: &Lua, args: MultiValue) -> Result<()> { fn console_error(_: &Lua, args: MultiValue) -> Result<()> { eprint!( - "{}{}[ERROR]{}{} ", - STYLE_BOLD, COLOR_RED, COLOR_RESET, STYLE_RESET + "{}[{}ERROR{}{}]{} ", + STYLE_BOLD, COLOR_RED, COLOR_RESET, STYLE_BOLD, STYLE_RESET ); let s = pretty_format_multi_value(&args)?; eprintln!("{}", s);