EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Refactor project for strict Clippy checks
Dylan M. Taylord171d6cf885d
diff --git a/crates/project/src/comp.rs b/crates/project/src/comp.rsindex 2ff97cd37..5a3c8650e 100644--- a/crates/project/src/comp.rs+++ b/crates/project/src/comp.rs@@ -1,7 +1,7 @@use super::item::LayerId;use super::layer::{Layer, LayerSource};use super::settings::{Marker, yes};-use super::*;+use super::{Deserialize, FrameRate, Node, PropGroup, Serialize, Tick, Value, essential, styles};/// 3D renderer of a composition.#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]diff --git a/crates/project/src/footage.rs b/crates/project/src/footage.rsindex ff1983d88..391b1e17c 100644--- a/crates/project/src/footage.rs+++ b/crates/project/src/footage.rs@@ -1,5 +1,5 @@use super::settings::yes;-use super::*;+use super::{ColorSpace, Deserialize, FrameRate, Serialize, Tick};#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]pub enum FootageKind {diff --git a/crates/project/src/item.rs b/crates/project/src/item.rsindex d9d5184c9..3f53bc823 100644--- a/crates/project/src/item.rs+++ b/crates/project/src/item.rs@@ -2,7 +2,7 @@ use super::comp::Comp;use super::footage::{Footage, FootageKind, Proxy, Solid};use super::layer::LayerSource;use super::settings::{APP_VERSION, ProjectError, ProjectSettings, SCHEMA_VERSION, SavedView};-use super::*;+use super::{Arc, BTreeMap, Deserialize, FrameRate, Label, Project, Serialize, Tick, file_check, limits};#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]pub struct ItemId(pub u64);diff --git a/crates/project/src/layer.rs b/crates/project/src/layer.rsindex b7286a6d5..25e2da7c4 100644--- a/crates/project/src/layer.rs+++ b/crates/project/src/layer.rs@@ -1,6 +1,6 @@use super::item::{ItemId, LayerId};use super::settings::Marker;-use super::*;+use super::{BlendMode, Deserialize, Label, PropGroup, Serialize, Tick};#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]pub enum LightKind {diff --git a/crates/project/src/render_templates.rs b/crates/project/src/render_templates.rsindex cf52b000e..cadfab2ad 100644--- a/crates/project/src/render_templates.rs+++ b/crates/project/src/render_templates.rs@@ -8,7 +8,9 @@use serde::{Deserialize, Serialize};-use crate::render_queue::*;+use crate::render_queue::{+ AlphaMode, Channels, CurrentOrOff, FieldRender, OutputFormat, OutputModule, ProResProfile, ProxyUse, RenderQuality, RenderSettings, SwitchOverride,+};use effectcraft_time::FrameRate;/// A default slot (the Defaults section of the Templates dialogs).@@ -288,6 +290,7 @@ impl RenderTemplates {#[cfg(test)]mod tests {use super::*;+ use crate::render_queue::{ColorDepth, Crop};#[test]fn builtins_defaults_and_round_trip() {diff --git a/crates/project/src/settings.rs b/crates/project/src/settings.rsindex efd75fd14..5d3d57204 100644--- a/crates/project/src/settings.rs+++ b/crates/project/src/settings.rs@@ -1,5 +1,5 @@use super::item::{ItemId, LayerId};-use super::*;+use super::{BTreeMap, ColorSpace, Deserialize, Label, Serialize, Tick};/// The project file schema. 2: effects on layers without a source rectangle (shape, text)/// measure positions from the top-left of their comp-sized bounds (effect space), not from