Skip to content

Commit

Permalink
Make error mod pub
Browse files Browse the repository at this point in the history
  • Loading branch information
pietgeursen committed Jan 6, 2021
1 parent afd4281 commit 322e73a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
//!
#![cfg_attr(not(feature = "std"), no_std)]

//#[cfg(not(feature = "std"))]
//#[panic_handler]
//#[no_mangle]
//pub extern "C" fn panic(panic_info: &core::panic::PanicInfo) -> ! {
// if let Some(location) = panic_info.location() {
// //println!("panic occurred in file '{}' at line {}", location.file(),
// let _line = location.line();
// } else {
// //jprintln!("panic occurred but can't get location information...");
// }
// loop {}
//}

#[macro_use]
extern crate serde_derive;
#[macro_use]
Expand All @@ -25,7 +12,7 @@ extern crate static_assertions;
use crate::error::*;
#[cfg(feature = "std")]
mod util;
mod error;
pub mod error;

#[cfg(feature = "std")]
use crate::util::hex_serde::{hex_from_bytes, vec_from_hex};
Expand Down

0 comments on commit 322e73a

Please sign in to comment.