Skip to content

Commit

Permalink
Remove unnecessary .as_ref().
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Mar 29, 2022
1 parent 3a0ae49 commit b1c3494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/test/src/formatters/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit b1c3494

Please sign in to comment.