mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Remove duplicated Loc::byte_range()
This commit is contained in:
parent
78ba0ca701
commit
1ec619f4f0
1 changed files with 1 additions and 2 deletions
|
@ -378,8 +378,7 @@ pub fn annotation_edits(
|
|||
|
||||
let byte_range = match tag {
|
||||
DeclarationTag::Destructure(i) => {
|
||||
let region = decls.destructs[i.index()].loc_pattern.region;
|
||||
region.start().byte_offset()..region.end().byte_offset()
|
||||
decls.destructs[i.index()].loc_pattern.byte_range()
|
||||
}
|
||||
_ => symbol.byte_range(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue