Pass in the previous row during building
Dependencies
- [2]
352OAU47Clippy: Needless reference - [3]
2USDM5CHWIP for more generic - [4]
MLUGR2LLAdd default impl and some basic plank logic - [5]
VSG6UWDYCan now build floors - [6]
Y4AQJ5RDOther defaults - [7]
6ODVKCN4Fix printouts of relative lengths - [8]
SMYRM2CFUse the MaterialStorage - [9]
ES2PMPT4Using structures instead - [10]
5TH3AA4610 mm extra space - [11]
OK5CKW6ERework everything, use references - [12]
USO5PZWOStart with the print function, separate mutable and immutable functions - [13]
JPTYS433Cleanup, clippy
Change contents
- replacement in src/bin/main.rs at line 74
match build_row(ms) {let previous_row = floor.rows().last();match build_row(ms, previous_row) { - replacement in src/bin/main.rs at line 89
fn build_row(ms: &mut MaterialStorage) -> Option<Row> {fn build_row(ms: &mut MaterialStorage, adjacent_row: Option<&Row>) -> Option<Row> {