mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Use Self
This commit is contained in:
1 parent
a6cebc4f51
commit
9e0d31d12d
1 file changed
+2
-2
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user