From 52ea58428ac4db5d054a2735c7aeb7722052a95e Mon Sep 17 00:00:00 2001 From: Nicolas Dusart Date: Mon, 24 Jul 2017 10:30:17 +0200 Subject: [PATCH] use usize as underlying type for SpecialCharacterIndices This allows to use it as slice indice waiting for the `SliceIndex` trait to be stabilized (rust-lang/rust#35729) --- src/sys/termios.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 8651a84da6..0afb78ab62 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -401,7 +401,7 @@ libc_enum! { } } -// TODO: Make this usable directly as a slice index. +#[repr(usize)] libc_enum! { /// Indices into the `termios.c_cc` array for special characters. #[repr(usize)]