rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1,810 建立於 2017年6月3日

在 GitHub 查看
 (1 留言) (1 反應) (1 負責人)Rust (10,406 star) (1,391 fork)batch import
C-enhancementgood first issue

描述

I found this in the standard library:

assert!(o == owned && b == borrowed)

This should be a case for should_assert_eq. Additionally, it might be nice to have a lint that suggests splitting asserts with && to multiple assert statements, for better debugging.

貢獻者指南