mirror of https://github.com/astral-sh/ruff
Use Self
This commit is contained in:
parent
6d140426c1
commit
0365752bf3
|
|
@ -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…
Reference in New Issue