rust-lang/rust-clippy

Extensions to should_assert_eq

Open

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

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

倉庫指標

Star
 (10,406 star)
PR 合併指標
 (平均合併 19天 22小時) (30 天內合併 113 個 PR)

描述

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.

貢獻者指南