perf: reduce size of DialogPage enum by 1000 bytes

This commit is contained in:
Michael Aaron Murphy 2026-05-01 15:15:59 +02:00 committed by Michael Murphy
parent 72b40aece3
commit cd48e4fa30
3 changed files with 7 additions and 7 deletions

View file

@ -34,7 +34,7 @@ async fn handle_replace(
conflict_count: usize,
) -> ReplaceResult {
let item_from = match tab::item_from_path(file_from, IconSizes::default()) {
Ok(ok) => ok,
Ok(ok) => Box::new(ok),
Err(err) => {
log::warn!("{err}");
return ReplaceResult::Cancel;
@ -42,7 +42,7 @@ async fn handle_replace(
};
let item_to = match tab::item_from_path(file_to, IconSizes::default()) {
Ok(ok) => ok,
Ok(ok) => Box::new(ok),
Err(err) => {
log::warn!("{err}");
return ReplaceResult::Cancel;