Skip to content

Commit

Permalink
supress unused unsafe warning and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Dec 16, 2021
1 parent 01d31e9 commit a0e1177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
2 changes: 2 additions & 0 deletions near-sdk/src/environment/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ 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")]
//* This was stabilized recently (~ >1.51), so ignore warnings but don't enforce higher msrv
#[allow(unused_unsafe)]
unsafe {
core::arch::wasm32::unreachable()
}
Expand Down

0 comments on commit a0e1177

Please sign in to comment.