aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs13
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