fn write_error_heading(
    stream: &mut StandardStream,
    color_spec: &ColorSpec
) -> Result<()>