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:
parent
ea5fd7c9d9
commit
781bd186ee
4 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1624,7 +1624,7 @@ impl H7CAD {
|
|||
self.push_undo_snapshot(i, "REFCLOSE");
|
||||
|
||||
// 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()
|
||||
.filter_map(|h| self.tabs[i].scene.document.get_entity(*h).cloned())
|
||||
.collect();
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in a new issue