aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/macros.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-21 09:24:16 +0000
committerBlaž Hrastnik2020-09-21 09:24:16 +0000
commit935cfeae576f734e6cbd455bfa39df014700ae86 (patch)
treea4abe959b718f265ade4a66a844bfefadc546f90 /helix-term/src/macros.rs
parent48330ddb5f36a1c5f44a636525089a019ce4439d (diff)
Split parts of helix-term into helix-view.
It still largely depends on term for some types but I plan to change that later.
Diffstat (limited to 'helix-term/src/macros.rs')
-rw-r--r--helix-term/src/macros.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/helix-term/src/macros.rs b/helix-term/src/macros.rs
deleted file mode 100644
index 3b22a786..00000000
--- a/helix-term/src/macros.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-macro_rules! hashmap {
- (@single $($x:tt)*) => (());
- (@count $($rest:expr),*) => (<[()]>::len(&[$(hashmap!(@single $rest)),*]));
-
- ($($key:expr => $value:expr,)+) => { hashmap!($($key => $value),+) };
- ($($key:expr => $value:expr),*) => {
- {
- let _cap = hashmap!(@count $($key),*);
- let mut _map = ::std::collections::HashMap::with_capacity(_cap);
- $(
- let _ = _map.insert($key, $value);
- )*
- _map
- }
- };
-}