Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

fix(engine): import denoise model and gpu names explicitly

Dylan M. Taylor5b5ddc39049b
diff --git a/crates/engine/src/denoise/gpu.rs b/crates/engine/src/denoise/gpu.rs
index 1577b4edc..a2a493fab 100644
--- a/crates/engine/src/denoise/gpu.rs
+++ b/crates/engine/src/denoise/gpu.rs
@@ -1,7 +1,7 @@
#[cfg(feature = "denoise")]
use super::model::{GpuSide, STACK};
#[cfg(feature = "denoise")]
-use super::*;
+use super::{Arc, Duration, Mutex, Path, PathBuf, PoisonError, SystemTime, TileRunner};
/// Tiles run at once on a graphics card: enough to keep it fed while others are packed and blended.
#[cfg(feature = "denoise")]
diff --git a/crates/engine/src/denoise/model.rs b/crates/engine/src/denoise/model.rs
index fbd13d79c..b9f75023e 100644
--- a/crates/engine/src/denoise/model.rs
+++ b/crates/engine/src/denoise/model.rs
@@ -4,6 +4,8 @@ use super::gpu::{GPU_CRASHED, GPU_MAX_FALLBACKS, GPU_PARALLEL, GPU_SLOW, GPU_STU
use super::settings::{installed_models, read_settings};
#[cfg(feature = "denoise")]
use super::state::Pace;
+#[cfg(feature = "denoise")]
+use super::{AtomicBool, AtomicUsize, Ordering, OnceLock, PathBuf, PoisonError, RunError};
use super::{Arc, DenoiserManifest, Mutex, Path, TileRunner, Value, json};
/// Stack of the threads that run the model (the runtime recurses through its graph).
pub(super) const STACK: usize = 16 << 20;