Closed otavio closed 6 years ago
Instead of using:
if let Some(_) = var
We can use:
if var.is_some()
Also, we can avoid calling 'clone' for the types which derive 'Copy'.
Signed-off-by: Otavio Salvador otavio@ossystems.com.br
thank you !
Instead of using:
if let Some(_) = var
We can use:
if var.is_some()
Also, we can avoid calling 'clone' for the types which derive 'Copy'.
Signed-off-by: Otavio Salvador otavio@ossystems.com.br