pub fn print_warning(message: &str) -> crate::Result<()> {
  let mut output = StandardStream::stderr(ColorChoice::Always);
  let _ = output.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)).set_bold(true));
  write!(output, "warning:")?;
  output.reset()?;
  writeln!(output, " {}", message)?;
  output.flush()?;
  Ok(())
}
/// Prints a warning message to stderr, in the same format that `cargo` uses.
Prints a warning message to stderr, in the same format that `cargo` uses.
Prints a warning message to stderr in the same format that ` cargo ` uses .
pub fn print_warning(message: &str) -> crate::Result<()> {
  let mut output = StandardStream::stderr(ColorChoice::Always);
  let _ = output.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)).set_bold(true));
  write!(output, "warning:")?;
  output.reset()?;
  writeln!(output, " {}", message)?;
  output.flush()?;
  Ok(())
}
pub fn print_warning ( message : & str ) -> crate :: Result < ( ) > { let mut output = StandardStream :: stderr ( ColorChoice :: Always ) ; let _ = output . set_color ( ColorSpec :: new ( ) . set_fg ( Some ( Color :: Yellow ) ) . set_bold ( true ) ) ; write ! ( output " " ) ? ; output . reset ( ) ? ; writeln ! ( output " " message ) ? ; output . flush ( ) ? ; Ok ( ( ) ) }
Prints a warning message to stderr, in the same format that `cargo` uses.
Prints a warning message to stderr in the same format that ` cargo ` uses .
message
&str
message
&str