4 ms·
Small nit: the Some() pattern should go on the left side of the assignment: let Some(value) = param.as_ref() else { // Handle, and continue, return a
by epidemian 1y ago
Small nit: the Some() pattern should go on the left side of the assignment:
let Some(value) = param.as_ref() else {
// Handle, and continue, return an error etc
}
// Use `value` as normal.