Commit 429560d 1 parent 1bd9600 commit 429560d Copy full SHA for 429560d
File tree 1 file changed +3
-3
lines changed
round-based/src/simulation
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,16 +114,16 @@ where
114
114
///
115
115
/// Panics if simulation contained zero parties.
116
116
pub fn expect_same ( mut self ) -> T {
117
- let Some ( first) = self . 0 . get ( 0 ) else {
117
+ let Some ( first) = self . 0 . first ( ) else {
118
118
panic ! ( "simulation contained zero parties" ) ;
119
119
} ;
120
120
121
121
if !self . 0 [ 1 ..] . iter ( ) . all ( |i| i == first) {
122
- let mut msg = alloc:: format! (
122
+ let mut msg = alloc:: string :: String :: from (
123
123
"Simulation output didn't match expectations.\n \
124
124
Expected: all parties return the same output\n \
125
125
Actual : some of the parties returned a different output\n \
126
- Outputs :\n "
126
+ Outputs :\n ",
127
127
) ;
128
128
129
129
for ( i, res) in self . 0 . iter ( ) . enumerate ( ) {
You can’t perform that action at this time.
0 commit comments