Remove std feature from cranelift-bforest

This commit is contained in:
bjorn3
2019-09-28 15:39:58 +02:00
committed by Dan Gohman
parent dadfbcd32b
commit d25e611946
7 changed files with 10 additions and 22 deletions

View File

@@ -231,7 +231,7 @@ where
/// Get a text version of the path to `key`.
fn tpath<C: Comparator<K>>(&self, key: K, forest: &MapForest<K, V>, comp: &C) -> String {
use std::string::ToString;
use alloc::string::ToString;
match self.root.expand() {
None => "map(empty)".to_string(),
Some(root) => {
@@ -420,7 +420,7 @@ where
/// Get a text version of the path to the current position.
fn tpath(&self) -> String {
use std::string::ToString;
use alloc::string::ToString;
self.path.to_string()
}
}
@@ -430,7 +430,7 @@ mod tests {
use super::super::NodeData;
use super::*;
use core::mem;
use std::vec::Vec;
use alloc::vec::Vec;
#[test]
fn node_size() {