more clippy updates
@@ -195,7 +195,7 @@ impl NewSwagInventoryItem {
// We want the logo width to fit.
let original_width = logo_info.width;
logo_info.width = pdf_width - (pdf_margin * 2.0);
- logo_info.height *= (logo_info.width / original_width);
+ logo_info.height *= logo_info.width / original_width;
let position = ((pdf_width - logo_info.width) / 2.0, pdf_height - logo_info.height - pdf_margin);
// Center the logo at the top of the pdf.
doc.insert_image(page_id, logo_stream, position, (logo_info.width, logo_info.height)).unwrap();
@@ -204,7 +204,7 @@ impl NewSwagInventoryItem {
// We want the barcode width to fit.
let original_width = info.width;
info.width = pdf_width - (pdf_margin * 2.0);
- info.height *= (info.width / original_width);
+ info.height *= info.width / original_width;
let position = ((pdf_width - info.width) / 2.0, pdf_height - info.height - logo_info.height - (pdf_margin * 2.0));
// Center the barcode at the top of the pdf.
doc.insert_image(page_id, img_stream, position, (info.width, info.height)).unwrap();
