Replace assert! with assert_ne! (#1140)

This commit is contained in:
Akihito Nakano
2020-05-13 16:05:12 +09:00
committed by GitHub
parent 62ff6d9191
commit 637ba8120b
5 changed files with 6 additions and 6 deletions

View File

@@ -687,7 +687,7 @@ where
AttestationStrategy::SomeValidators(faulty_validators.to_vec()),
);
assert!(honest_head != faulty_head, "forks should be distinct");
assert_ne!(honest_head, faulty_head, "forks should be distinct");
(honest_head, faulty_head)
}