Fix unchecked try_from
This commit is contained in:
parent
a294cffd50
commit
61ac574b70
|
@ -69,13 +69,15 @@ pub fn SourcePlate(props: &SourcePlateProps) -> Html {
|
|||
m_stat_handle.set(false);
|
||||
if let Some(ul) = *m_start_handle {
|
||||
if let Some(br) = *m_end_handle {
|
||||
if let Ok(rd) = RegionDisplay::try_from((ul.0, ul.1, br.0, br.1)) {
|
||||
dispatch.set(NewTransferState {
|
||||
source_region: RegionDisplay::try_from((ul.0, ul.1, br.0, br.1)).expect(""),
|
||||
source_region: rd,
|
||||
destination_region: current.destination_region.clone(),
|
||||
interleave_x: current.interleave_x,
|
||||
interleave_y: current.interleave_y })
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue