Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratipoka committed Jun 18, 2023
1 parent 2eb26a9 commit 0bf1f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/tab/element/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ impl<'a> Element<'a> {
object_id: None,
})
.map(|quad| {
let raw_quad = quad.quads.first().except("tried to get the midpoint of an element which is not visible");
let raw_quad = quad.quads.first().expect("tried to get the midpoint of an element which is not visible");
let input_quad = ElementQuad::from_raw_points(raw_quad);

(input_quad.bottom_right + input_quad.top_left) / 2.0
Expand Down

0 comments on commit 0bf1f9e

Please sign in to comment.