diff --git a/src/main.rs b/src/main.rs index 73760db..42c73b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -154,8 +154,7 @@ fn main() { } } } - if args.pdb_output_path.is_some() { - let pdb_path = args.pdb_output_path.unwrap(); + if let Some(pdb_path) = args.pdb_output_path { pdbtbx::save(&pdb, &pdb_path, pdbtbx::StrictnessLevel::Loose).unwrap(); println!( "{}", @@ -166,8 +165,7 @@ fn main() { .green() ); } - if args.csv_output_path.is_some() { - let csv_path = args.csv_output_path.unwrap(); + if let Some(csv_path) = args.csv_output_path { let mut df: DataFrame = df!( "Residue ID" => &dpx_residue_ids, "DPX" => &dpx_values