Skip to content

Commit

Permalink
Merge pull request #12 from CertainLach/no_std
Browse files Browse the repository at this point in the history
Make it no_std
  • Loading branch information
rib authored Aug 31, 2023
2 parents 52baab2 + 4edb2f9 commit fd4f3fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#![doc(html_root_url = "https://docs.rs/jni-sys/0.3.0")]
#![allow(non_snake_case, non_camel_case_types)]
#![warn(rust_2018_idioms, missing_debug_implementations)]
#![no_std]

use std::os::raw::c_char;
use std::os::raw::c_void;
use core::ffi::c_char;
use core::ffi::c_void;

use jni_sys_macros::jni_to_union;

Expand Down Expand Up @@ -57,8 +58,8 @@ impl Clone for jvalue {
*self
}
}
impl std::fmt::Debug for jvalue {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
impl core::fmt::Debug for jvalue {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
let b = unsafe { self.b };
// For all except `jboolean` then any bitwise pattern is a valid value
// so even though we don't know which specific type the given `jvalue`
Expand Down

0 comments on commit fd4f3fb

Please sign in to comment.