rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1.810 geöffnet am 3. Juni 2017

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (1 zugewiesene Person)Rust (1.391 Forks)batch import
C-enhancementgood first issue

Repository-Metriken

Stars
 (10.406 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 19T 22h) (113 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide