Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Oct 23, 2024
1 parent 17642b4 commit 4096009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions crates/ruff_python_formatter/src/string/implicit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ impl<'a> FormatImplicitConcatenatedStringFlat<'a> {
.is_some_and(|quote| quote != part.flags().quote_style())
{
return None;
} else {
preserve_quotes_requirement = Some(part.flags().quote_style());
}
preserve_quotes_requirement = Some(part.flags().quote_style());
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions crates/ruff_python_formatter/src/string/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,17 +1004,15 @@ pub(super) fn is_fstring_with_triple_quoted_literal_expression_containing_quotes
mod tests {
use std::borrow::Cow;

use ruff_python_ast::str_prefix::FStringPrefix;
use ruff_python_ast::{
str::Quote,
str_prefix::{AnyStringPrefix, ByteStringPrefix},
AnyStringFlags,
};
use ruff_python_ast::str_prefix::FStringPrefix;

use crate::string::normalize_string;
use crate::string::normalize_string;

use super::UnicodeEscape;
use super::UnicodeEscape;

#[test]
Expand Down

0 comments on commit 4096009

Please sign in to comment.