diff --git a/crates/engine/src/cmd/retouch_cmds.rs b/crates/engine/src/cmd/retouch_cmds.rs index 4bb8496fa5..868a5428ba 100644 --- a/crates/engine/src/cmd/retouch_cmds.rs +++ b/crates/engine/src/cmd/retouch_cmds.rs @@ -35,9 +35,7 @@ pub use pattern_stamp::{ }; mod periodic; mod remove; -pub use content_aware_move::{ - ContentAwarePreview, preview as content_aware_move_preview, preview_with_pixel_budget as content_aware_move_preview_with_pixel_budget, -}; +pub use content_aware_move::{ContentAwarePreview, preview as content_aware_move_preview}; pub use patch::preview as patch_preview; fn bad(cmd: &str, msg: impl Into) -> EngineError { diff --git a/crates/engine/src/cmd/retouch_cmds/content_aware_move.rs b/crates/engine/src/cmd/retouch_cmds/content_aware_move.rs index 89eca9973a..fa7b82ad72 100644 --- a/crates/engine/src/cmd/retouch_cmds/content_aware_move.rs +++ b/crates/engine/src/cmd/retouch_cmds/content_aware_move.rs @@ -700,7 +700,7 @@ pub fn preview(s: &Session, p: &Value) -> Result { } /// Prepare a preview with a bound on the number of pixels solved at full resolution. -pub fn preview_with_pixel_budget(s: &Session, p: &Value, max_pixels: u64) -> Result { +pub(crate) fn preview_with_pixel_budget(s: &Session, p: &Value, max_pixels: u64) -> Result { let captured = crate::channel_cmds::inject_target(s, CMD, p.clone()); let p = &captured; let plan = plan(s, p, PREVIEW_MARGIN)?;