mirror of
https://github.com/astral-sh/ruff
synced 2026-01-25 07:20:50 -05:00
Fix clippy::trivially-copy-pass-by-ref (pedantic) (#862)
This commit is contained in:
@@ -1603,8 +1603,8 @@ pub enum Context {
|
||||
|
||||
pub fn ambiguous_unicode_character(
|
||||
locator: &SourceCodeLocator,
|
||||
start: &Location,
|
||||
end: &Location,
|
||||
start: Location,
|
||||
end: Location,
|
||||
context: Context,
|
||||
settings: &Settings,
|
||||
autofix: &fixer::Mode,
|
||||
@@ -1612,8 +1612,8 @@ pub fn ambiguous_unicode_character(
|
||||
let mut checks = vec![];
|
||||
|
||||
let text = locator.slice_source_code_range(&Range {
|
||||
location: *start,
|
||||
end_location: *end,
|
||||
location: start,
|
||||
end_location: end,
|
||||
});
|
||||
|
||||
let mut col_offset = 0;
|
||||
|
||||
Reference in New Issue
Block a user