rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1.810 aberto em 3 de jun. de 2017

Ver no GitHub
 (1 comment) (1 reaction) (1 assignee)Rust (1.391 forks)batch import
C-enhancementgood first issue

Métricas do repositório

Stars
 (10.406 stars)
Métricas de merge de PR
 (Mesclagem média 19d 22h) (113 fundiu PRs em 30d)

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.

Guia do colaborador