##// END OF EJS Templates
rust: Fix "panic message is not a string literal" warnings...
Simon Sapin -
r48063:21e9ff96 default draft
parent child Browse files
Show More
@@ -156,7 +156,7 b" impl<'a> NaiveMissingAncestors<'a> {"
156 if left == right {
156 if left == right {
157 return;
157 return;
158 }
158 }
159 panic!(format!(
159 panic!(
160 "Equality assertion failed (left != right)
160 "Equality assertion failed (left != right)
161 left={:?}
161 left={:?}
162 right={:?}
162 right={:?}
@@ -171,7 +171,7 b" impl<'a> NaiveMissingAncestors<'a> {"
171 self.bases,
171 self.bases,
172 self.history,
172 self.history,
173 self.random_seed,
173 self.random_seed,
174 ));
174 );
175 }
175 }
176 }
176 }
177
177
@@ -231,7 +231,7 b' fn parse_test_missing_ancestors_params(v'
231 .map(|n| n.trim().parse().expect(err_msg))
231 .map(|n| n.trim().parse().expect(err_msg))
232 .collect();
232 .collect();
233 if params.len() != 3 {
233 if params.len() != 3 {
234 panic!(err_msg);
234 panic!("{}", err_msg);
235 }
235 }
236 (params[0], params[1], params[2])
236 (params[0], params[1], params[2])
237 }
237 }
General Comments 0
You need to be logged in to leave comments. Login now