CT3VONTOEWK5SOJ64L7II6NUITVM2S73UEC4UXXVAKBB4JEUOXKQC
let leftover_plank = Plank {
length: self.length - (measure + SAWBLADE),
endpiece: false,
new: false,
};
let leftover_plank;
let leftover_length;
if self.length() < PLANKMIN {
// Create a new plank instead
let new_plank: Plank = Default::default();
leftover_plank = new_plank;
} else {
leftover_length = self.length - (measure + SAWBLADE);
leftover_plank = Plank {
length: leftover_length,
..Default::default()
};
}