Skip to content

Commit

Permalink
clippy: Remove needless borrow. (tikv#427)
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Mitchener <bruce.mitchener@gmail.com>
Signed-off-by: Jan Berktold <jberktold@roblox.com>
  • Loading branch information
waywardmonkeys authored and JanBerktold committed Nov 12, 2022
1 parent 6cf9cc4 commit dee6083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder/text.rs
Expand Up @@ -221,7 +221,7 @@ fn label_pairs_to_text(
let mut separator = "{";
for lp in pairs {
writer.write_all(separator)?;
writer.write_all(&lp.get_name())?;
writer.write_all(lp.get_name())?;
writer.write_all("=\"")?;
writer.write_all(&escape_string(lp.get_value(), true))?;
writer.write_all("\"")?;
Expand Down

0 comments on commit dee6083

Please sign in to comment.