Skip to content

Commit

Permalink
Merge pull request #37 from jofas/removed-deprecated-macros
Browse files Browse the repository at this point in the history
Removed deprecated macros
  • Loading branch information
jofas authored Jan 28, 2024
2 parents 8b6ff61 + b72d0d6 commit 8bc48dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 121 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* `hashbrown::hash_set` macro

### Removed

* `map` macro

* `map_e` macro

* `set` macro


## [0.2.6]

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

### Changed

* enhanced performance of `vec_no_clone` macro when used with a
* Enhanced performance of `vec_no_clone` macro when used with a
list of elements


## [0.2.3]

### Changed

* better allocation performace for all collections
* Better allocation performace for all collections


## [0.2.2]
Expand Down
30 changes: 0 additions & 30 deletions src/_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ macro_rules! hash_map {
};
}

/// Deprecated. Use [`hash_map!`] instead.
///
#[deprecated = "deprecated in favour of `hash_map!`. Will be removed in `map-macro v0.3.0`"]
#[macro_export]
macro_rules! map {
{$($k: expr => $v: expr),* $(,)?} => {
::std::collections::HashMap::from([$(($k, $v),)*])
};
}

/// Explicitly typed equivalent of [`hash_map!`], suitable for
/// [trait object values](crate#explicitly-typed-values-for-trait-objects).
///
Expand Down Expand Up @@ -60,16 +50,6 @@ macro_rules! hash_map_e {
};
}

/// Deprecated. Use [`hash_map_e!`] instead.
///
#[deprecated = "deprecated in favour of `hash_map_e!`. Will be removed in `map-macro v0.3.0`"]
#[macro_export]
macro_rules! map_e {
{$($k: expr => $v: expr),* $(,)?} => {
::std::collections::HashMap::from([$(($k, $v as _),)*])
};
}

/// Macro for creating a [`BTreeMap`](::std::collections::BTreeMap).
///
/// Syntactic sugar for [`BTreeMap::from`](::std::collections::BTreeMap::from).
Expand Down Expand Up @@ -141,16 +121,6 @@ macro_rules! hash_set {
};
}

/// Deprecated. Use [`hash_set!`] instead.
///
#[deprecated = "deprecated in favour of `hash_set!`. Will be removed in `map-macro v0.3.0`"]
#[macro_export]
macro_rules! set {
{$($v: expr),* $(,)?} => {
::std::collections::HashSet::from([$($v,)*])
};
}

/// Macro for creating a [`BTreeSet`](::std::collections::BTreeSet).
///
/// Syntactic sugar for [`BTreeSet::from`](::std::collections::BTreeSet::from).
Expand Down
58 changes: 0 additions & 58 deletions tests/map.rs

This file was deleted.

31 changes: 0 additions & 31 deletions tests/set.rs

This file was deleted.

0 comments on commit 8bc48dd

Please sign in to comment.