diff --git a/src/app/cmd_result.rs b/src/app/cmd_result.rs index 556d5c5a9..2ab3c4fbc 100644 --- a/src/app/cmd_result.rs +++ b/src/app/cmd_result.rs @@ -1002,7 +1002,7 @@ impl H7CAD { use crate::scene::truck_tess; use crate::modules::insert::solid3d_cmds::empty_solid3d; use truck_modeling::builder; - use truck_modeling::{Point3, Rad, Vector3 as TruckVec3}; + use truck_modeling::Vector3 as TruckVec3; let profile_ent = self.tabs[i].scene.document.get_entity(profile_handle).cloned(); let path_ent = self.tabs[i].scene.document.get_entity(path_handle).cloned(); diff --git a/src/app/commands.rs b/src/app/commands.rs index 2e2908159..8d300dde6 100644 --- a/src/app/commands.rs +++ b/src/app/commands.rs @@ -1624,7 +1624,7 @@ impl H7CAD { self.push_undo_snapshot(i, "REFCLOSE"); // Collect the edited temp entities. - let mut new_entities: Vec = session.temp_handles + let new_entities: Vec = session.temp_handles .iter() .filter_map(|h| self.tabs[i].scene.document.get_entity(*h).cloned()) .collect(); diff --git a/src/modules/home/modify/refedit.rs b/src/modules/home/modify/refedit.rs index c3c8e2187..1a4320f1a 100644 --- a/src/modules/home/modify/refedit.rs +++ b/src/modules/home/modify/refedit.rs @@ -23,7 +23,8 @@ use crate::command::{CadCommand, CmdResult}; /// Active REFEDIT session. Lives in `DocumentTab::refedit_session`. #[derive(Debug, Clone)] pub struct RefEditSession { - /// The INSERT entity being edited. + /// The INSERT entity being edited (kept for future REFCLOSE DISCARD). + #[allow(dead_code)] pub insert_handle: Handle, /// Name of the block being edited. pub block_name: String, diff --git a/src/scene/mod.rs b/src/scene/mod.rs index 746c655e6..45951ed1d 100644 --- a/src/scene/mod.rs +++ b/src/scene/mod.rs @@ -35,7 +35,7 @@ pub use wire_model::WireModel; use crate::command::EntityTransform; use acadrust::entities::{BoundaryEdge, BoundaryPath, Hatch as DxfHatch, PolylineEdge, Solid as DxfSolid}; -use acadrust::entities::{Block, BlockEnd, Insert as DxfInsert, Solid3D}; +use acadrust::entities::{Block, BlockEnd, Insert as DxfInsert}; use acadrust::objects::ObjectType; use acadrust::types::Vector2; use acadrust::{CadDocument, EntityType, Handle, TableEntry};