We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b6dbcd commit a077f04Copy full SHA for a077f04
src/main.rs
@@ -133,12 +133,10 @@ fn analyse_state(
133
.max()
134
.ok_or_else(|| anyhow!("Error in running optimisation."))?;
135
136
- info!(
137
- "Final score: {}",
138
- final_state
139
- .score()
140
- .ok_or_else(|| anyhow!("State has become corrupted"))
141
- );
+ let final_score = final_state
+ .score()
+ .ok_or_else(|| anyhow!("State has become corrupted"))?;
+ info!("Final score: {}", final_score);
142
143
let serialised = serde_json::to_string(&final_state)?;
144
0 commit comments