Fix clippy::trivially-copy-pass-by-ref (pedantic) (#862)

This commit is contained in:
Anders Kaseorg
2022-11-21 12:59:51 -08:00
committed by GitHub
parent 6b9e57fb78
commit 58949b564e
18 changed files with 53 additions and 53 deletions

View File

@@ -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.