mockersf / jenkins-api.rs

Rust client for Jenkins API
MIT License
26 stars 17 forks source link

job_builder: Avoid Some(_) and clone() when possible #5

Closed otavio closed 6 years ago

otavio commented 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

mockersf commented 6 years ago

thank you !