mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Replace some Point2D::new(0, 0)
instances with Point2D::zero()
(#33783)
Signed-off-by: hackerbirds <120066692+hackerbirds@users.noreply.github.com>
This commit is contained in:
parent
b58cee48ce
commit
1668b12ded
4 changed files with 5 additions and 5 deletions
|
@ -126,8 +126,8 @@ impl Window {
|
|||
rendering_context,
|
||||
event_queue: RefCell::new(vec![]),
|
||||
mouse_down_button: Cell::new(None),
|
||||
mouse_down_point: Cell::new(Point2D::new(0, 0)),
|
||||
mouse_pos: Cell::new(Point2D::new(0, 0)),
|
||||
mouse_down_point: Cell::new(Point2D::zero()),
|
||||
mouse_pos: Cell::new(Point2D::zero()),
|
||||
last_pressed: Cell::new(None),
|
||||
keys_down: RefCell::new(HashMap::new()),
|
||||
animation_state: Cell::new(AnimationState::Idle),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue