rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1 810 ouverte le 3 juin 2017

Voir sur GitHub
 (1 commentaire) (1 réaction) (1 assigné)Rust (1 391 forks)batch import
C-enhancementgood first issue

Métriques du dépôt

Stars
 (10 406 stars)
Métriques de merge PR
 (Merge moyen 19j 22h) (113 PRs mergées en 30 j)

Description

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.

Guide contributeur