commit | fc8e3c5b69a6dcf27cd0d010984da8020668ca43 | [log] [tgz] |
---|---|---|
author | David Brown <david.brown@linaro.org> | Wed Mar 10 05:11:26 2021 -0700 |
committer | David Brown <davidb@davidb.org> | Thu Mar 11 07:25:43 2021 -0700 |
tree | 049d487e72e1ed6904768367452070866af891b3 | |
parent | 50b5a12c313dad729130e7ff1b666a9286229f9a [diff] [blame] |
sim: Implement Default for a few types Clippy suggests implementing Default when the `new` function for that type just initializes the type to default values. Signed-off-by: David Brown <david.brown@linaro.org>
diff --git a/sim/src/lib.rs b/sim/src/lib.rs index e602327..6cea000 100644 --- a/sim/src/lib.rs +++ b/sim/src/lib.rs
@@ -169,6 +169,7 @@ } } +#[derive(Default)] pub struct RunStatus { failures: usize, passes: usize,