mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 05:51:03 -05:00
Fix clippy::trivially-copy-pass-by-ref (pedantic) (#862)
This commit is contained in:
@@ -103,14 +103,14 @@ fn extract_quote(text: &str) -> &str {
|
||||
/// W605
|
||||
pub fn invalid_escape_sequence(
|
||||
locator: &SourceCodeLocator,
|
||||
start: &Location,
|
||||
end: &Location,
|
||||
start: Location,
|
||||
end: Location,
|
||||
) -> Vec<Check> {
|
||||
let mut checks = vec![];
|
||||
|
||||
let text = locator.slice_source_code_range(&Range {
|
||||
location: *start,
|
||||
end_location: *end,
|
||||
location: start,
|
||||
end_location: end,
|
||||
});
|
||||
|
||||
// Determine whether the string is single- or triple-quoted.
|
||||
|
||||
Reference in New Issue
Block a user