Skip to content

Commit

Permalink
Fix no-std build on rust <1.40
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 30, 2020
1 parent 187d898 commit 4c3300b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ mod lib {
pub use std::*;
}

pub use self::core::ops::{Bound, RangeBounds};
pub use self::core::cell::{Cell, RefCell};
pub use self::core::clone::{self, Clone};
pub use self::core::convert::{self, From, Into};
Expand Down
2 changes: 0 additions & 2 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ impl Map<String, Value> {
no_btreemap_get_key_value,
))]
{
use std::ops::{Bound, RangeBounds};

struct Key<'a, Q: ?Sized>(&'a Q);

impl<'a, Q: ?Sized> RangeBounds<Q> for Key<'a, Q> {
Expand Down

0 comments on commit 4c3300b

Please sign in to comment.