update no_std config

This commit is contained in:
Folkert 2022-08-06 19:05:29 +02:00
parent b4eda7c9d9
commit 6394a4e337
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 11 additions and 11 deletions

View file

@ -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";