Use OnceLock rather than Once.
This avoids the need for a mutable static, and most of the unsafety. Bug: 290018030 Test: m rust Change-Id: Ib9a1af0c74f1620db340ee4abdbfb5e6ad9752a7
Loading
Please register or sign in to comment
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This avoids the need for a mutable static, and most of the unsafety. Bug: 290018030 Test: m rust Change-Id: Ib9a1af0c74f1620db340ee4abdbfb5e6ad9752a7