Skip to content

Commit

Permalink
Comment out unstable code
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTaylor7 committed May 3, 2024
1 parent 02721e4 commit b1d16eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod permutation;
pub mod puzzle;
// pub mod permutation;
// pub mod puzzle;
pub mod webgl;
6 changes: 4 additions & 2 deletions src/webgl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ const FRAGMENT_SHADER: &str = r##"

#[wasm_bindgen(start)]
fn start() -> Result<()> {
use console_error_panic_hook;
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
if cfg!(debug_assertions) {
use console_error_panic_hook;
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
}

let gl = webgl_context()?;
// enable u32 type
Expand Down

0 comments on commit b1d16eb

Please sign in to comment.