Fix infinite loop error

This commit is contained in:
GuillaumeGomez 2015-02-05 15:11:51 +01:00
parent b0b4136d45
commit 9e20035e33

View File

@ -639,7 +639,7 @@ impl BytesContainer for InternedString {
// of `BytesContainer`, which is itself a workaround for the lack of
// DST.
unsafe {
let this = &self;
let this = &self[];
mem::transmute::<&[u8],&[u8]>(this.container_as_bytes())
}
}