warn

Function warn 

Source
pub fn warn(msg: &str)
Expand description

Print warning message, clearing any active spinner line first.

This ensures warnings appear on their own line even when a spinner is active, by writing a carriage return + clear-line escape sequence before the message.