diff options
author | Martin Fischer <martin@push-f.com> | 2021-04-08 15:46:24 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-04-08 15:57:18 +0200 |
commit | eb0e8506472f2d672b00227bb07089c313484945 (patch) | |
tree | 01e7d8ee398940515952830a1177e497c561f937 /src/macros.rs | |
parent | 18a022579737acc599277258fc4a8472ba73a8b0 (diff) |
stop exporting macros
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/macros.rs b/src/macros.rs index 55977a4..643e754 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -42,7 +42,6 @@ macro_rules! time { /// When `$enabled` is false, this avoids the overhead of allocating /// and writing to a buffer, as well as any overhead or side effects /// of the format arguments. -#[macro_export] macro_rules! format_if { ($enabled:expr, $borrowed:expr, $fmt:expr, $($args:expr),*) => { if $enabled { @@ -51,16 +50,4 @@ macro_rules! format_if { ::std::borrow::Cow::Borrowed($borrowed) } } -} - -/// Generate a test function `$name` which asserts that `$left` and `$right` -/// are equal. -#[macro_export] -macro_rules! test_eq { - ($name:ident, $left:expr, $right:expr) => { - #[test] - fn $name() { - assert_eq!($left, $right); - } - } }
\ No newline at end of file |