mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-14 08:43:10 +00:00
Fix infinite loop error
This commit is contained in:
parent
b0b4136d45
commit
9e20035e33
@ -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())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user