Make application-crypto std feature internal (#5558)

* Make `application-crypto` `std` feature internal

The macros should not generate code that requires that the calling crate
has a feature with the name `std` defined.

* Use a proper panic!
This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-04-07 19:31:45 +02:00
1 parent 0253793d90
commit dcc0a41331
2 files changed
+89 -47

No files matched your search

+1 -1
View File
@@ -305,7 +305,7 @@ fn reduce_4<A: IdentifierT>(assignments: &mut Vec<StakedAssignment<A>>) -> u32 {
}
(false, false) => {
// Neither of the edges was removed? impossible.
debug_assert!(false, "Duplicate voter (or other corrupt input).");
panic!("Duplicate voter (or other corrupt input).");
}
}
}