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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 53 additions and 53 deletions

View file

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