mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Fix clippy::trivially-copy-pass-by-ref (pedantic) (#862)
This commit is contained in:
parent
6b9e57fb78
commit
58949b564e
18 changed files with 53 additions and 53 deletions
|
@ -253,7 +253,7 @@ pub fn to_module_and_member(target: &str) -> (&str, &str) {
|
|||
|
||||
/// Convert a location within a file (relative to `base`) to an absolute
|
||||
/// position.
|
||||
pub fn to_absolute(relative: &Location, base: &Location) -> Location {
|
||||
pub fn to_absolute(relative: Location, base: Location) -> Location {
|
||||
if relative.row() == 1 {
|
||||
Location::new(
|
||||
relative.row() + base.row() - 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue