chore: fix all compiler warnings

- cmd_result.rs: remove unused Point3 and Rad imports (SWEEP block)
- scene/mod.rs: remove unused Solid3D struct import
- commands.rs: drop unnecessary `mut` on new_entities (REFCLOSE block)
- refedit.rs: annotate insert_handle with #[allow(dead_code)]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-04-08 22:28:31 +03:00
commit 781bd186ee
4 changed files with 5 additions and 4 deletions

View file

@ -1002,7 +1002,7 @@ impl H7CAD {
use crate::scene::truck_tess; use crate::scene::truck_tess;
use crate::modules::insert::solid3d_cmds::empty_solid3d; use crate::modules::insert::solid3d_cmds::empty_solid3d;
use truck_modeling::builder; 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 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(); let path_ent = self.tabs[i].scene.document.get_entity(path_handle).cloned();

View file

@ -1624,7 +1624,7 @@ impl H7CAD {
self.push_undo_snapshot(i, "REFCLOSE"); self.push_undo_snapshot(i, "REFCLOSE");
// Collect the edited temp entities. // Collect the edited temp entities.
let mut new_entities: Vec<acadrust::EntityType> = session.temp_handles let new_entities: Vec<acadrust::EntityType> = session.temp_handles
.iter() .iter()
.filter_map(|h| self.tabs[i].scene.document.get_entity(*h).cloned()) .filter_map(|h| self.tabs[i].scene.document.get_entity(*h).cloned())
.collect(); .collect();

View file

@ -23,7 +23,8 @@ use crate::command::{CadCommand, CmdResult};
/// Active REFEDIT session. Lives in `DocumentTab::refedit_session`. /// Active REFEDIT session. Lives in `DocumentTab::refedit_session`.
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct RefEditSession { 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, pub insert_handle: Handle,
/// Name of the block being edited. /// Name of the block being edited.
pub block_name: String, pub block_name: String,

View file

@ -35,7 +35,7 @@ pub use wire_model::WireModel;
use crate::command::EntityTransform; use crate::command::EntityTransform;
use acadrust::entities::{BoundaryEdge, BoundaryPath, Hatch as DxfHatch, PolylineEdge, Solid as DxfSolid}; 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::objects::ObjectType;
use acadrust::types::Vector2; use acadrust::types::Vector2;
use acadrust::{CadDocument, EntityType, Handle, TableEntry}; use acadrust::{CadDocument, EntityType, Handle, TableEntry};