diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-13 13:28:24 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-13 14:12:08 +1000 |
| commit | abadece3ba2dba032fa7752e88fcf58289c240ac (patch) | |
| tree | f78ce658172fbe3b7b55c7c011e63fc64fa21f28 /src/test/bench | |
| parent | da510bfb4a3f6ca805e849372f9bbe7b2b0f6a61 (diff) | |
| download | rust-abadece3ba2dba032fa7752e88fcf58289c240ac.tar.gz rust-abadece3ba2dba032fa7752e88fcf58289c240ac.zip | |
std: remove the invalid NullTerminatedStr instance for &'static str.
A slice of a 'static str is still 'static, but doesn't necessarily have the null terminator.
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/shootout-fasta-redux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/bench/shootout-fasta-redux.rs b/src/test/bench/shootout-fasta-redux.rs index 3d5fc01afa6..9e90541baab 100644 --- a/src/test/bench/shootout-fasta-redux.rs +++ b/src/test/bench/shootout-fasta-redux.rs @@ -93,7 +93,7 @@ impl RepeatFasta { let stdout = self.stdout; let alu_len = self.alu.len(); let mut buf = vec::from_elem(alu_len + LINE_LEN, 0u8); - let alu: &[u8] = self.alu.as_bytes_with_null(); + let alu: &[u8] = self.alu.as_bytes(); copy_memory(buf, alu, alu_len); copy_memory(vec::mut_slice(buf, alu_len, buf.len()), |
