Skip to content

Commit

Permalink
fmt and remove no longer necessary unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Dec 14, 2021
1 parent 01d31e9 commit 87740b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl NonFungibleToken {
fn measure_min_token_storage_cost(&mut self) {
let initial_storage_usage = env::storage_usage();
// 64 Length because this is the max account id length
let tmp_token_id = "a".repeat(64);
let tmp_token_id = "a".repeat(64);
let tmp_owner_id = AccountId::new_unchecked("a".repeat(64));

// 1. set some dummy data
Expand Down
4 changes: 1 addition & 3 deletions near-sdk/src/environment/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,7 @@ pub fn panic_str(message: &str) -> ! {
pub fn abort() -> ! {
// Use wasm32 unreachable call to avoid including the `panic` external function in Wasm.
#[cfg(target_arch = "wasm32")]
unsafe {
core::arch::wasm32::unreachable()
}
core::arch::wasm32::unreachable();
#[cfg(not(target_arch = "wasm32"))]
unsafe {
sys::panic()
Expand Down

0 comments on commit 87740b4

Please sign in to comment.