Skip to content

Commit 7bd8570

Browse files
committed
itest: remove assert_eq_self
1 parent 29ff85f commit 7bd8570

File tree

1 file changed

+0
-16
lines changed
  • itest/rust/src/framework

1 file changed

+0
-16
lines changed

itest/rust/src/framework/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,3 @@ pub fn suppress_godot_print(mut f: impl FnMut()) {
228228
pub fn runs_release() -> bool {
229229
!Os::singleton().is_debug_build()
230230
}
231-
232-
/// Workaround for tests of the form `assert!(a == a)`.
233-
///
234-
/// We can't always use `assert_eq!(a, a)` because of lacking `Debug` impl.
235-
///
236-
/// Clippy however complains, yet the suggested `#[allow(clippy::eq_op)]` cannot be used to suppress the Clippy warning (likely a bug).
237-
#[macro_export]
238-
macro_rules! assert_eq_self {
239-
($a:expr) => {{
240-
if !($a == $a) {
241-
panic!("assertion failed: `(a == a)`");
242-
}
243-
}};
244-
}
245-
246-
pub use crate::assert_eq_self;

0 commit comments

Comments
 (0)