Skip to content

Commit

Permalink
use usize as underlying type for SpecialCharacterIndices
Browse files Browse the repository at this point in the history
This allows to use it as slice indice waiting for the `SliceIndex` trait to be stabilized (rust-lang/rust#35729)
  • Loading branch information
ndusart committed Jul 24, 2017
1 parent bbd5215 commit 52ea584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/termios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 52ea584

Please sign in to comment.