Remove some unsafe stuff, justified some of it.

This commit is contained in:
Paul Masurel
2018-05-07 23:57:53 -07:00
parent 9a0b7f9855
commit 24050d0eb5
12 changed files with 32 additions and 31 deletions

View File

@@ -198,7 +198,7 @@ mod tests {
let mut term_string = String::new();
while term_it.advance() {
//let term = Term::from_bytes(term_it.key());
term_string.push_str(unsafe { str::from_utf8_unchecked(term_it.key()) });
term_string.push_str(unsafe { str::from_utf8_unchecked(term_it.key()) }); // ok test
}
assert_eq!(&*term_string, "abcdef");
}