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.
This commit is contained in:
parent
da510bfb4a
commit
abadece3ba
3 changed files with 22 additions and 17 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue