diff --git a/core/src/location.rs b/core/src/location.rs index b7b2c8b35f..021dc2fdc0 100644 --- a/core/src/location.rs +++ b/core/src/location.rs @@ -67,7 +67,7 @@ impl Location { + offset .try_into() .expect("offset should be able to convert to isize")) as u32; - Location { + Self { row: self.row, column, } @@ -81,7 +81,7 @@ impl Location { + offset .try_into() .expect("offset should be able to convert to isize")) as u32; - Location { + Self { row, column: self.column, }