lifthrasiir / rust-encoding

Character encoding support for Rust
MIT License
284 stars 59 forks source link

Fix tests to work with the current rust #38

Closed dotdash closed 10 years ago

dotdash commented 10 years ago

&[T, ..n] doesn't coerce to &[T] anymore, so we get type errors because &[u8, ..1] isn't equal to &[u8]. We need a temporary so we can provide a type hint to enforce the coercion.