You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: console_output.rs
    path of file: ./repos/service-policy-kit/src/reporters
    
    the code of the file until where you have to start completion: use crate::data::{CheckResult, Interaction, ReporterOutput, Violation};

use console::style;
use console::Term;
use difference::Changeset;
use std::collections::HashMap;
use std::fmt::Write;
const FAIL_SIGN: &str = "✗";
const SUCCESS_SIGN: &str = "✔";
pub struct Cons
    
pub fn diff_text(expected: &str, actual: &str) -> (String, String, String) {
    let expected = format!("{:?}", expected);
    let expected = &expected[1..expected.len() - 1];

    let actual = format!("{:?}", actual);
    let actual = &actual[1..actual.len() - 1];

    let Changeset { diffs, .. } = Changeset::new(expected, actual, " ");
    let diff = diffs
        .into_iter()
        .map(|diff| match diff {
            difference::Difference::Same(s) => s,
            difference::Difference::Rem(s) => format!("{}", style(s).bold().white().on_green()),
            difference::Difference::Add(s) => format!("{}", style(s).bold().white().on_red()),
        })
        .filter(|s| !s.is_empty())
        .collect::<Vec<String>>()
        .join(" != ");

    (expected.to_string(), actual.to_string(), diff)
}