Skip to content

Commit

Permalink
Disable get_key_value with older Rust versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothée Haudebourg committed Nov 17, 2021
1 parent c4b6b97 commit 1ae5566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl Map<String, Value> {
/// The key may be any borrowed form of the map's key type, but the ordering
/// on the borrowed form *must* match the ordering on the key type.
#[inline]
#[cfg(any(feature = "preserve_order", not(no_btreemap_get_key_value)))]
pub fn get_key_value<Q>(&self, key: &Q) -> Option<(&String, &Value)>
where
String: Borrow<Q>,
Expand Down

0 comments on commit 1ae5566

Please sign in to comment.