Skip to content

Commit 18a5a73

Browse files
committed
refactor: remove unnecessary .to_string() call
1 parent 3400b01 commit 18a5a73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/ruff_linter/src/rules/flake8_logging_format/rules/logging_call.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ fn logging_f_string(
3838
.f_strings()
3939
.next()
4040
.map(|f| f.flags.quote_str())
41-
.unwrap_or("\"")
42-
.to_string();
41+
.unwrap_or("\"");
4342

4443
for f in f_string.value.f_strings() {
4544
for element in &f.elements {

0 commit comments

Comments
 (0)