Function clippy_utils::higher::extract_assert_macro_args [−][src]
Expand description
Extract args from an assert-like macro. Currently working with:
assert!,assert_eq!andassert_ne!debug_assert!,debug_assert_eq!anddebug_assert_ne!For example:assert!(expr)will returnSome([expr])debug_assert_eq!(a, b)will returnSome([a, b])
