Skip to content

Commit

Permalink
Cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueDoctor committed Mar 8, 2025
1 parent ebead52 commit bd53892
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions editor/src/messages/tool/common_functionality/shape_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ impl ShapeState {
.flat_map(|(data, selection_state)| {
selection_state.selected_points.iter().filter_map(move |&point| {
let Some(data) = &data else { return None };
let Some(_) = point.get_handle_pair(&data) else { return None }; // ignores the endpoints.
let _ = point.get_handle_pair(data)?; // ignores the endpoints.
Some(data.colinear(point))
})
});
Expand Down Expand Up @@ -1076,9 +1076,9 @@ impl ShapeState {
}
}
} else if let Some(handles) = point.get_handle_pair(&vector_data) {
let modification_type = VectorModificationType::SetG1Continuous { handles, enabled: false };
responses.add(GraphOperationMessage::Vector { layer, modification_type });
}
let modification_type = VectorModificationType::SetG1Continuous { handles, enabled: false };
responses.add(GraphOperationMessage::Vector { layer, modification_type });
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions editor/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use crate::node_graph_executor::Instrumented;
use crate::node_graph_executor::NodeRuntime;

use graph_craft::document::DocumentNode;
use graphene_core::raster::color::Color;
use graphene_core::InputAccessor;
use graphene_core::raster::color::Color;

use glam::DVec2;

Expand Down Expand Up @@ -256,7 +256,7 @@ pub mod test_prelude {
pub use crate::messages::portfolio::document::utility_types::clipboards::Clipboard;
pub use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier;
pub use crate::messages::prelude::*;
pub use crate::messages::tool::common_functionality::graph_modification_utils::{is_layer_fed_by_node_of_name, NodeGraphLayer};
pub use crate::messages::tool::common_functionality::graph_modification_utils::{NodeGraphLayer, is_layer_fed_by_node_of_name};
pub use crate::messages::tool::utility_types::ToolType;
pub use crate::node_graph_executor::NodeRuntime;
pub use crate::test_utils::EditorTestUtils;
Expand All @@ -266,7 +266,7 @@ pub mod test_prelude {
pub use graph_craft::document::DocumentNode;
pub use graphene_core::raster::{Color, Image};
pub use graphene_core::{InputAccessor, InputAccessorSource};
pub use graphene_std::{transform::Footprint, GraphicGroup};
pub use graphene_std::{GraphicGroup, transform::Footprint};

#[macro_export]
macro_rules! float_eq {
Expand Down

0 comments on commit bd53892

Please sign in to comment.