Allow building without std (#1069)

Closes https://github.com/CraneStation/cranelift/issues/1067
This commit is contained in:
Joshua Nelson
2019-09-26 12:00:03 -04:00
committed by Benjamin Bouvier
parent 40f6d3b753
commit a1f6457e8a
18 changed files with 43 additions and 31 deletions

View File

@@ -3,6 +3,7 @@
use crate::iter::{Iter, IterMut};
use crate::keys::Keys;
use crate::EntityRef;
use core::cmp::min;
use core::marker::PhantomData;
use core::ops::{Index, IndexMut};
use core::slice;
@@ -12,7 +13,6 @@ use serde::{
ser::{SerializeSeq, Serializer},
Deserialize, Serialize,
};
use std::cmp::min;
use std::vec::Vec;
/// A mapping `K -> V` for densely indexed entity references.