What is the best way to write this function?
fn first(mut opt: Option<&mut String>) {
match &mut opt {
Some(v) => {
second(Some(v));
}
None => {
second(None);
}
}
match &mut opt {
Some(v) => {
second(Some(v));
}
None => {
second(None);
}
}
}