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
2020-04-07 19:31:45 +02:00
committed by GitHub
parent 0253793d90
commit dcc0a41331
2 changed files with 89 additions and 47 deletions
+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).");
}
}
}