From 73c97a2c5af61402963a42359435bc434249c1f0 Mon Sep 17 00:00:00 2001 From: Luke Harding Date: Thu, 2 May 2024 19:49:26 -0400 Subject: [PATCH] Add new warn_println() fn --- server/src/util.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/util.rs b/server/src/util.rs index df4747b..cfbddaf 100644 --- a/server/src/util.rs +++ b/server/src/util.rs @@ -7,3 +7,7 @@ pub fn print_copyright_notice() { pub fn notice_println(msg: impl Into) { println!("{}", msg.into().green().bold()); } + +pub fn warn_println(msg: impl Into) { + eprintln!("{}", msg.into().yellow().bold()); +}