Remove unnecessary .as_ref().
This commit is contained in:
parent
3a0ae49135
commit
b1c3494d88
@ -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<()> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user