mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
Use Self
This commit is contained in:
parent
72185fecd5
commit
89ff74457e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue