Skip to content

Commit 8bc48dd

Browse files
authored
Merge pull request #37 from jofas/removed-deprecated-macros
Removed deprecated macros
2 parents 8b6ff61 + b72d0d6 commit 8bc48dd

File tree

4 files changed

+10
-121
lines changed

4 files changed

+10
-121
lines changed

CHANGELOG.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
* `hashbrown::hash_set` macro
1616

17+
### Removed
18+
19+
* `map` macro
20+
21+
* `map_e` macro
22+
23+
* `set` macro
24+
1725

1826
## [0.2.6]
1927

@@ -63,15 +71,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6371

6472
### Changed
6573

66-
* enhanced performance of `vec_no_clone` macro when used with a
74+
* Enhanced performance of `vec_no_clone` macro when used with a
6775
list of elements
6876

6977

7078
## [0.2.3]
7179

7280
### Changed
7381

74-
* better allocation performace for all collections
82+
* Better allocation performace for all collections
7583

7684

7785
## [0.2.2]

src/_std.rs

-30
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ macro_rules! hash_map {
2222
};
2323
}
2424

25-
/// Deprecated. Use [`hash_map!`] instead.
26-
///
27-
#[deprecated = "deprecated in favour of `hash_map!`. Will be removed in `map-macro v0.3.0`"]
28-
#[macro_export]
29-
macro_rules! map {
30-
{$($k: expr => $v: expr),* $(,)?} => {
31-
::std::collections::HashMap::from([$(($k, $v),)*])
32-
};
33-
}
34-
3525
/// Explicitly typed equivalent of [`hash_map!`], suitable for
3626
/// [trait object values](crate#explicitly-typed-values-for-trait-objects).
3727
///
@@ -60,16 +50,6 @@ macro_rules! hash_map_e {
6050
};
6151
}
6252

63-
/// Deprecated. Use [`hash_map_e!`] instead.
64-
///
65-
#[deprecated = "deprecated in favour of `hash_map_e!`. Will be removed in `map-macro v0.3.0`"]
66-
#[macro_export]
67-
macro_rules! map_e {
68-
{$($k: expr => $v: expr),* $(,)?} => {
69-
::std::collections::HashMap::from([$(($k, $v as _),)*])
70-
};
71-
}
72-
7353
/// Macro for creating a [`BTreeMap`](::std::collections::BTreeMap).
7454
///
7555
/// Syntactic sugar for [`BTreeMap::from`](::std::collections::BTreeMap::from).
@@ -141,16 +121,6 @@ macro_rules! hash_set {
141121
};
142122
}
143123

144-
/// Deprecated. Use [`hash_set!`] instead.
145-
///
146-
#[deprecated = "deprecated in favour of `hash_set!`. Will be removed in `map-macro v0.3.0`"]
147-
#[macro_export]
148-
macro_rules! set {
149-
{$($v: expr),* $(,)?} => {
150-
::std::collections::HashSet::from([$($v,)*])
151-
};
152-
}
153-
154124
/// Macro for creating a [`BTreeSet`](::std::collections::BTreeSet).
155125
///
156126
/// Syntactic sugar for [`BTreeSet::from`](::std::collections::BTreeSet::from).

tests/map.rs

-58
This file was deleted.

tests/set.rs

-31
This file was deleted.

0 commit comments

Comments
 (0)