summaryrefslogtreecommitdiffstats
path: root/src/options/rewrite.rs
diff options
context:
space:
mode:
authorMarco Ieni <11428655+MarcoIeni@users.noreply.github.com>2020-11-06 00:12:27 +0100
committerGitHub <noreply@github.com>2020-11-05 18:12:27 -0500
commit3dac4f7fa6451c446902583d2d2aa1358960fe7c (patch)
treeaa56fafc017bcea4346516400079234ee4a2bdae /src/options/rewrite.rs
parent8c8ddc8a815997250419594dd506bca6313433a6 (diff)
fix some clippy warnings (#380)
Diffstat (limited to 'src/options/rewrite.rs')
-rw-r--r--src/options/rewrite.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/options/rewrite.rs b/src/options/rewrite.rs
index c1f349d7..12597756 100644
--- a/src/options/rewrite.rs
+++ b/src/options/rewrite.rs
@@ -49,7 +49,7 @@ fn rewrite_style_strings_to_honor_deprecated_minus_plus_options(opt: &mut cli::O
),
"minus",
) {
- opt.minus_style = rewritten.to_string();
+ opt.minus_style = rewritten;
}
if let Some(rewritten) = _get_rewritten_minus_plus_style_string(
&opt.minus_emph_style,
@@ -60,7 +60,7 @@ fn rewrite_style_strings_to_honor_deprecated_minus_plus_options(opt: &mut cli::O
),
"minus-emph",
) {
- opt.minus_emph_style = rewritten.to_string();
+ opt.minus_emph_style = rewritten;
}
if let Some(rewritten) = _get_rewritten_minus_plus_style_string(
&opt.plus_style,
@@ -68,7 +68,7 @@ fn rewrite_style_strings_to_honor_deprecated_minus_plus_options(opt: &mut cli::O
(None, opt.deprecated_plus_background_color.as_deref()),
"plus",
) {
- opt.plus_style = rewritten.to_string();
+ opt.plus_style = rewritten;
}
if let Some(rewritten) = _get_rewritten_minus_plus_style_string(
&opt.plus_emph_style,
@@ -76,7 +76,7 @@ fn rewrite_style_strings_to_honor_deprecated_minus_plus_options(opt: &mut cli::O
(None, opt.deprecated_plus_emph_background_color.as_deref()),
"plus-emph",
) {
- opt.plus_emph_style = rewritten.to_string();
+ opt.plus_emph_style = rewritten;
}
}