Make DeviceId/WindowId::dummy() safe (#3784)

This commit is contained in:
daxpedda
2024-07-14 13:14:32 +02:00
committed by Kirill Chibisov
parent 71dea4637d
commit 6509f8a18b
15 changed files with 31 additions and 33 deletions

View File

@@ -771,7 +771,7 @@ pub struct DeviceId(xinput::DeviceId);
impl DeviceId {
#[allow(unused)]
pub const unsafe fn dummy() -> Self {
pub const fn dummy() -> Self {
DeviceId(0)
}
}