Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0aec55d7 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Abhishek Pandit-Subedi
Browse files

gd: Alarm should take const ref, not mut

Alarm's reset and cancel methods don't require mut references. Making
them const ref allows us to create and use `Arc<Alarm>`, which is safe
because AsyncFd implements Send + Sync.

Bug: 193261630
Test: atest --host bluetooth_test_common
Tag: #gd-refactor
Change-Id: Ia057815593abb1fed504c5c9d9dce7ce8b961151
parent 543402eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment