mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
update no_std config
This commit is contained in:
parent
b4eda7c9d9
commit
6394a4e337
4 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
#![no_std]
|
||||
#![crate_type = "lib"]
|
||||
#![cfg_attr(feature = "no_std", no_std)]
|
||||
|
||||
use arrayvec::ArrayString;
|
||||
use core::cmp::Ordering;
|
||||
|
@ -365,7 +365,7 @@ impl RocDec {
|
|||
}
|
||||
|
||||
fn to_str_helper(self, string: &mut ArrayString<{ Self::MAX_STR_LENGTH }>) -> &str {
|
||||
use std::fmt::Write;
|
||||
use core::fmt::Write;
|
||||
|
||||
if self.as_i128() == 0 {
|
||||
return "0";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue