code review: remove unsafe on borrow checker constructor

This commit is contained in:
Pat Hickey
2020-06-30 10:10:10 -07:00
parent 05201b514d
commit 5f5d7cb0f7
4 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ impl BorrowChecker {
/// `GuestSlice` and `GuestStr` structs, which implement `std::ops::Deref` and
/// `std::ops::DerefMut`. It also enforces that `GuestPtr::read` and `GuestPtr::write` do not
/// access memory with an outstanding borrow.
pub unsafe fn new() -> Self {
pub fn new() -> Self {
BorrowChecker {
bc: RefCell::new(InnerBorrowChecker::new()),
}