use repr(u8) instead of repr(C) for an enum

This commit is contained in:
Folkert 2022-09-08 20:57:49 +02:00 committed by Richard Feldman
parent 42ae4282ba
commit a0fe1ec453
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -142,7 +142,7 @@ pub enum ReadErr {
Other,
}
#[repr(C)]
#[repr(u8)]
pub enum WriteErr {
Other,
PermissionDenied,