/// Checks if two Levels contain equal inner contents.
#[no_mangle]
pub extern "C" fn Level_hash(o: &Level) -> u64 {
- // Note that we'd love to use std::collections::hash_map::DefaultHasher but its not in core
+ // Note that we'd love to use std::collections::hash_map::DefaultHasher but it's not in core
#[allow(deprecated)]
let mut hasher = core::hash::SipHasher::new();
std::hash::Hash::hash(&o.to_native(), &mut hasher);
/// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed.
pub free: Option<extern "C" fn(this_arg: *mut c_void)>,
}
+unsafe impl Send for Logger {}
+unsafe impl Sync for Logger {}
use lightning::util::logger::Logger as rustLogger;
impl rustLogger for Logger {