Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

fix compile warning#69

Open
SKTT1Ryze wants to merge 1 commit intorustwasm:masterfrom
SKTT1Ryze:fix/warning
Open

fix compile warning#69
SKTT1Ryze wants to merge 1 commit intorustwasm:masterfrom
SKTT1Ryze:fix/warning

Conversation

@SKTT1Ryze
Copy link

Fix compile warning:

warning: function `set_panic_hook` is never used
 --> src/utils.rs:1:8
  |
1 | pub fn set_panic_hook() {
  |        ^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

Copy link

@aashishbishow aashishbishow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

mod utils;

use wasm_bindgen::prelude::*;
pub use utils::set_panic_hook;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// called set_panic_hook to fixed compilation error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments