Skip to content

Commit

Permalink
Fix signature of methods returning extents
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny committed Mar 16, 2024
1 parent b4f85db commit 1afbda6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions platforms/unix/src/atspi/interfaces/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ impl TextInterface {
.map_err(self.map_error())
}

fn get_character_extents(&self, offset: i32, coord_type: CoordType) -> fdo::Result<(Rect,)> {
fn get_character_extents(&self, offset: i32, coord_type: CoordType) -> fdo::Result<Rect> {
self.node
.character_extents(offset, coord_type)
.map(|rect| (rect,))
.map_err(self.map_error())
}

Expand Down Expand Up @@ -125,10 +124,9 @@ impl TextInterface {
start_offset: i32,
end_offset: i32,
coord_type: CoordType,
) -> fdo::Result<(Rect,)> {
) -> fdo::Result<Rect> {
self.node
.range_extents(start_offset, end_offset, coord_type)
.map(|rect| (rect,))
.map_err(self.map_error())
}

Expand Down

0 comments on commit 1afbda6

Please sign in to comment.