mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-26 13:24:42 +00:00
Use Self
This commit is contained in:
parent
6d140426c1
commit
0365752bf3
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ impl Location {
|
||||||
+ offset
|
+ offset
|
||||||
.try_into()
|
.try_into()
|
||||||
.expect("offset should be able to convert to isize")) as u32;
|
.expect("offset should be able to convert to isize")) as u32;
|
||||||
Location {
|
Self {
|
||||||
row: self.row,
|
row: self.row,
|
||||||
column,
|
column,
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ impl Location {
|
||||||
+ offset
|
+ offset
|
||||||
.try_into()
|
.try_into()
|
||||||
.expect("offset should be able to convert to isize")) as u32;
|
.expect("offset should be able to convert to isize")) as u32;
|
||||||
Location {
|
Self {
|
||||||
row,
|
row,
|
||||||
column: self.column,
|
column: self.column,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue