Remove unnecessary .as_ref().

This commit is contained in:
Mara Bos 2022-03-29 15:53:09 +02:00 committed by GitHub
parent 3a0ae49135
commit b1c3494d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ impl<T: Write> PrettyFormatter<T> {
result: &str,
color: term::color::Color,
) -> io::Result<()> {
self.write_pretty(result.as_ref(), color)
self.write_pretty(result, color)
}
pub fn write_pretty(&mut self, word: &str, color: term::color::Color) -> io::Result<()> {