Skip to content

Commit 9e0d31d

Browse files
committed
Use Self
1 parent a6cebc4 commit 9e0d31d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/core/src/location.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl Location {
6767
+ offset
6868
.try_into()
6969
.expect("offset should be able to convert to isize")) as u32;
70-
Location {
70+
Self {
7171
row: self.row,
7272
column,
7373
}
@@ -81,7 +81,7 @@ impl Location {
8181
+ offset
8282
.try_into()
8383
.expect("offset should be able to convert to isize")) as u32;
84-
Location {
84+
Self {
8585
row,
8686
column: self.column,
8787
}

0 commit comments

Comments
 (0)