mirror of
https://github.com/openharmony/third_party_rust_ryu.git
synced 2026-07-19 19:13:31 -04:00
Support no_std
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
||||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied.
|
||||
|
||||
use std::ptr;
|
||||
use core::ptr;
|
||||
|
||||
// Returns e == 0 ? 1 : ceil(log_2(5^e)).
|
||||
pub fn pow5bits(e: i32) -> u32 {
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied.
|
||||
|
||||
use std::{mem, ptr};
|
||||
use core::{mem, ptr};
|
||||
|
||||
use common::*;
|
||||
use d2s_full_table::*;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied.
|
||||
|
||||
use std::ptr;
|
||||
use core::ptr;
|
||||
|
||||
use common::*;
|
||||
use digit_table::*;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#![no_std]
|
||||
#![cfg_attr(
|
||||
feature = "cargo-clippy",
|
||||
allow(
|
||||
|
||||
Reference in New Issue
Block a user