Fix transfer_region in release mode

This commit is contained in:
Emilia Allison 2025-11-22 21:06:58 -05:00
parent 58013fc176
commit 7c76e148ce
No known key found for this signature in database
GPG Key ID: FEC1CE6360EEC9A8
1 changed files with 2 additions and 3 deletions

View File

@ -7,8 +7,9 @@ use crate::plate::PlateType;
use crate::util; use crate::util;
use crate::Well; use crate::Well;
use std::fmt; use std::fmt::{self, Display};
use std::sync::LazyLock; use std::sync::LazyLock;
use std::ops::Mul;
#[derive(Clone, PartialEq, Eq, Serialize, Deserialize, Debug, Hash)] #[derive(Clone, PartialEq, Eq, Serialize, Deserialize, Debug, Hash)]
pub struct CustomRegion { pub struct CustomRegion {
@ -522,8 +523,6 @@ fn standardize_rectangle(c1: &Well, c2: &Well) -> (Well, Well) {
) )
} }
#[cfg(debug_assertions)]
use std::{fmt::Display, ops::Mul};
#[cfg(debug_assertions)] // There should be no reason to print a transfer otherwise #[cfg(debug_assertions)] // There should be no reason to print a transfer otherwise
impl fmt::Display for TransferRegion { impl fmt::Display for TransferRegion {