We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert_eq_self
1 parent 29ff85f commit 7bd8570Copy full SHA for 7bd8570
itest/rust/src/framework/mod.rs
@@ -228,19 +228,3 @@ pub fn suppress_godot_print(mut f: impl FnMut()) {
228
pub fn runs_release() -> bool {
229
!Os::singleton().is_debug_build()
230
}
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