Skip to content

Commit b1c3494

Browse files
authored
Remove unnecessary .as_ref().
1 parent 3a0ae49 commit b1c3494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/test/src/formatters/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<T: Write> PrettyFormatter<T> {
6666
result: &str,
6767
color: term::color::Color,
6868
) -> io::Result<()> {
69-
self.write_pretty(result.as_ref(), color)
69+
self.write_pretty(result, color)
7070
}
7171

7272
pub fn write_pretty(&mut self, word: &str, color: term::color::Color) -> io::Result<()> {

0 commit comments

Comments
 (0)